Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f1fd901

Browse files
petrochenkovgitbot
authored and
gitbot
committedMar 11, 2025
std: Fix another new symlink test on Windows
1 parent 0272ab0 commit f1fd901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎std/src/fs/tests.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1962,6 +1962,10 @@ fn test_rename_directory_to_non_empty_directory() {
19621962
#[test]
19631963
fn test_rename_symlink() {
19641964
let tmpdir = tmpdir();
1965+
if !got_symlink_permission(&tmpdir) {
1966+
return;
1967+
};
1968+
19651969
let original = tmpdir.join("original");
19661970
let dest = tmpdir.join("dest");
19671971
let not_exist = Path::new("does not exist");

0 commit comments

Comments
 (0)
Please sign in to comment.