Rollup merge of #119642 - petrochenkov:winstdtest, r=ChrisDenton
library: Fix a symlink test failing on Windows
This commit is contained in:
commit
71610e2eb6
@ -936,8 +936,10 @@ fn read_link() {
|
|||||||
}
|
}
|
||||||
// Check that readlink works with non-drive paths on Windows.
|
// Check that readlink works with non-drive paths on Windows.
|
||||||
let link = tmpdir.join("link_unc");
|
let link = tmpdir.join("link_unc");
|
||||||
|
if got_symlink_permission(&tmpdir) {
|
||||||
check!(symlink_dir(r"\\localhost\c$\", &link));
|
check!(symlink_dir(r"\\localhost\c$\", &link));
|
||||||
assert_eq!(check!(fs::read_link(&link)), Path::new(r"\\localhost\c$\"));
|
assert_eq!(check!(fs::read_link(&link)), Path::new(r"\\localhost\c$\"));
|
||||||
|
};
|
||||||
}
|
}
|
||||||
let link = tmpdir.join("link");
|
let link = tmpdir.join("link");
|
||||||
if !got_symlink_permission(&tmpdir) {
|
if !got_symlink_permission(&tmpdir) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user