Skip to content

Commit

Permalink
Remove the test reflink_src_is_symlink (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain authored Apr 19, 2024
1 parent 5447441 commit 951ae08
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/reflink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,6 @@ fn reflink_dest_is_dir() {
}
}

// No reliable symlinking on windows, while macos can reflink symlinks.
#[cfg(all(
unix,
not(any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos"
))
))]
#[test]
fn reflink_src_is_symlink() {
let dir = tempdir().unwrap();
let target = dir.path().join("target.txt");
let symlink = dir.path().join("symlink.txt");
File::create(&target).unwrap();
std::os::unix::fs::symlink(&target, &symlink).unwrap();
let dest_file_path = dir.path().join("dest.txt");

let err = reflink(symlink, dest_file_path).unwrap_err();
println!("{:?}", err);
assert_eq!(err.kind(), io::ErrorKind::InvalidInput)
}

#[cfg(not(any(
target_os = "macos",
target_os = "ios",
Expand Down

0 comments on commit 951ae08

Please sign in to comment.