Ignore if we can't create a symlink in this test

This commit is contained in:
Paul Dicker 2016-02-07 21:10:29 +01:00
parent d47036cbd1
commit d1bfe9bccf

View File

@ -1881,7 +1881,7 @@ mod tests {
check!(fs::create_dir_all(&d2));
check!(check!(File::create(&canary)).write(b"foo"));
check!(symlink_junction(&d2, &dt.join("d2")));
check!(symlink_file(&canary, &d1.join("canary")));
let _ = symlink_file(&canary, &d1.join("canary"));
check!(fs::remove_dir_all(&d1));
assert!(!d1.is_dir());