Skip to content

Commit

Permalink
Disable symlink tests on Windows.
Browse files Browse the repository at this point in the history
For some reason, these work on AppVeyor but not in other build systems.
Let's just disable them.

See: rust-lang/rust#37149
  • Loading branch information
BurntSushi committed Nov 11, 2016
1 parent 5462af4 commit 4b18f82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ sherlock:be, to a very large extent, the result of luck. Sherlock Holmes
assert_eq!(lines, expected);
});

#[cfg(not(windows))]
sherlock!(symlink_nofollow, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| {
wd.remove("sherlock");
wd.create_dir("foo");
Expand All @@ -563,6 +564,7 @@ sherlock!(symlink_nofollow, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| {
wd.assert_err(&mut cmd);
});

#[cfg(not(windows))]
sherlock!(symlink_follow, "Sherlock", ".", |wd: WorkDir, mut cmd: Command| {
wd.remove("sherlock");
wd.create_dir("foo");
Expand Down

0 comments on commit 4b18f82

Please sign in to comment.