We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f17ebb1 + 0d70e58 commit ad48a79Copy full SHA for ad48a79
library/std/src/fs/tests.rs
@@ -936,8 +936,10 @@ fn read_link() {
936
}
937
// Check that readlink works with non-drive paths on Windows.
938
let link = tmpdir.join("link_unc");
939
- check!(symlink_dir(r"\\localhost\c$\", &link));
940
- assert_eq!(check!(fs::read_link(&link)), Path::new(r"\\localhost\c$\"));
+ if got_symlink_permission(&tmpdir) {
+ check!(symlink_dir(r"\\localhost\c$\", &link));
941
+ assert_eq!(check!(fs::read_link(&link)), Path::new(r"\\localhost\c$\"));
942
+ };
943
944
let link = tmpdir.join("link");
945
if !got_symlink_permission(&tmpdir) {
0 commit comments