diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index d208f5fcc..2ab7b1598 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -2383,7 +2383,7 @@ fn test_preserve_hardlink_attributes_in_directory() { // // A hard link should have the same inode as the target file. at.file_exists("dest/src/link"); - #[cfg(unix)] + #[cfg(all(unix, not(target_os = "freebsd")))] assert_eq!( at.metadata("dest/src/f").ino(), at.metadata("dest/src/link").ino()