Skip to content

Commit 586d87a

Browse files
committed
chore : Resolving Windows environment test failures
1 parent c85af1c commit 586d87a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

library/std/src/fs/tests.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,9 @@ fn test_fs_set_times_follows_symlink() {
23342334
use crate::os::windows::fs::FileTimesExt;
23352335

23362336
let tmp = tmpdir();
2337+
if !got_symlink_permission(&tmp) {
2338+
return;
2339+
}
23372340

23382341
// Create a target file
23392342
let target = tmp.join("target");
@@ -2432,6 +2435,9 @@ fn test_fs_set_times_nofollow() {
24322435
use crate::os::windows::fs::FileTimesExt;
24332436

24342437
let tmp = tmpdir();
2438+
if !got_symlink_permission(&tmp) {
2439+
return;
2440+
}
24352441

24362442
// Create a target file and a symlink to it
24372443
let target = tmp.join("target");

0 commit comments

Comments
 (0)