Skip to content

Commit

Permalink
std: Fix test got_symlink_permission on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Nov 16, 2020
1 parent f5230fb commit a5bc780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/fs/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,9 @@ fn metadata_access_times() {
#[test]
fn symlink_hard_link() {
let tmpdir = tmpdir();
if !got_symlink_permission(&tmpdir) {
return;
};

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

0 comments on commit a5bc780

Please sign in to comment.