-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Standard library test failure with read_link
on Windows 10
#90669
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Other links in the test have the same lowercase issue: --- a/library/std/src/fs/tests.rs
+++ b/library/std/src/fs/tests.rs
@@ -835,17 +835,17 @@ fn read_link() {
// directory symlink
assert_eq!(
check!(fs::read_link(r"C:\Users\All Users")).to_str().unwrap(),
- r"C:\ProgramData"
+ r"c:\ProgramData"
);
// junction
assert_eq!(
check!(fs::read_link(r"C:\Users\Default User")).to_str().unwrap(),
- r"C:\Users\Default"
+ r"c:\Users\Default"
);
// junction with special permissions
assert_eq!(
check!(fs::read_link(r"C:\Documents and Settings\")).to_str().unwrap(),
- r"C:\Users"
+ r"c:\Users"
);
}
let tmpdir = tmpdir(); |
It might not be a good idea to hardcode these paths in general. I'm not sure what the state of things is with windows 10 but with windows 7 it was at least possible to install on other drives than |
Whichever drive you install Windows on, they system drive will be labelled In any case the simple fix here is to compare |
@rustbot claim |
…-Simulacrum Fix standard library test with read_link closes rust-lang#90669 resolve this issue by comparing between Paths instead of strs
…-Simulacrum Fix standard library test with read_link closes rust-lang#90669 resolve this issue by comparing between Paths instead of strs
…-Simulacrum Fix standard library test with read_link closes rust-lang#90669 resolve this issue by comparing between Paths instead of strs
Uh oh!
There was an error while loading. Please reload this page.
The failing assert is
I don't know why my Windows is special in this way and the
All Users
symlink contains the drive letterC
in lowercase, this version of Windows was pre-installed on an HP laptop.Anyway, the Rust test suite fails due to this easily fixable mismatch.
The text was updated successfully, but these errors were encountered: