mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
disable cp tests on FreeBSD where they are supposed to be ignored.
This commit is contained in:
parent
9293cbb05b
commit
40b1ce7151
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||||
|
@ -2176,7 +2176,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.
|
||||||
|
@ -2206,7 +2206,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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue