1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

disable cp tests on FreeBSD where they are supposed to be ignored.

This commit is contained in:
David CARLIER 2022-11-01 20:17:22 +00:00 committed by Sylvestre Ledru
parent 9293cbb05b
commit 40b1ce7151

View file

@ -49,7 +49,7 @@ static TEST_MOUNT_OTHER_FILESYSTEM_FILE: &str = "mount/DO_NOT_copy_me.txt";
static TEST_NONEXISTENT_FILE: &str = "nonexistent_file.txt";
/// Assert that mode, ownership, and permissions of two metadata objects match.
#[cfg(not(windows))]
#[cfg(all(not(windows), not(target_os = "freebsd")))]
macro_rules! assert_metadata_eq {
($m1:expr, $m2:expr) => {{
assert_eq!($m1.mode(), $m2.mode(), "mode is different");
@ -2176,7 +2176,7 @@ fn test_copy_nested_directory_to_itself_disallowed() {
}
/// Test for preserving permissions when copying a directory.
#[cfg(not(windows))]
#[cfg(all(not(windows), not(target_os = "freebsd")))]
#[test]
fn test_copy_dir_preserve_permissions() {
// Create a directory that has some non-default permissions.
@ -2206,7 +2206,7 @@ fn test_copy_dir_preserve_permissions() {
/// Test for preserving permissions when copying a directory, even in
/// the face of an inaccessible file in that directory.
#[cfg(not(windows))]
#[cfg(all(not(windows), not(target_os = "freebsd")))]
#[test]
fn test_copy_dir_preserve_permissions_inaccessible_file() {
// Create a directory that has some non-default permissions and