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

Merge pull request #4097 from devnexen/fbsd_test_fix

fix cp tests build since they re supposed to be ignored on freebsd an…
This commit is contained in:
Sylvestre Ledru 2022-11-06 07:41:16 +01:00 committed by GitHub
commit 3ea7a061d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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