Skip to content

Commit

Permalink
Merge pull request #362 from Bromeon/bugfix/symlink-check
Browse files Browse the repository at this point in the history
Fix Windows symlink test to give reproducible error messages
  • Loading branch information
dtolnay authored Oct 13, 2020
2 parents e35673d + 595ac27 commit 1137642
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cargo/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ fn main() {
let from_dir = parent_dir.join("from");
let to_dir = parent_dir.join("to");
if fs::create_dir_all(&from_dir).is_ok()
&& fs::remove_dir(&to_dir).is_ok()
&& windows::symlink_dir(&from_dir, &to_dir).is_err()
{
message = DENIED;
Expand Down

0 comments on commit 1137642

Please sign in to comment.