Skip to content

Commit e075ffa

Browse files
compiler-errorsgitbot
authored and
gitbot
committed
Rollup merge of rust-lang#137543 - petrochenkov:wintest, r=ChrisDenton
std: Fix another new symlink test on Windows Checking for `got_symlink_permission` first is a standard procedure for such tests.
2 parents 4c37e11 + f1fd901 commit e075ffa

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)