Skip to content

Commit a5bc780

Browse files
committed
std: Fix test got_symlink_permission on Windows
1 parent f5230fb commit a5bc780

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/std/src/fs/tests.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,9 @@ fn metadata_access_times() {
13411341
#[test]
13421342
fn symlink_hard_link() {
13431343
let tmpdir = tmpdir();
1344+
if !got_symlink_permission(&tmpdir) {
1345+
return;
1346+
};
13441347

13451348
// Create "file", a file.
13461349
check!(fs::File::create(tmpdir.join("file")));

0 commit comments

Comments
 (0)