Disabling compare_xattrs cp and mv related tests on OpenBSD

The test_cp and test_mv have xattr related tests. They should
be disabled on OpenBSD after commit 19d42c0339 disabled the
compare_xattrs function on OpenBSD.

Fixes #6348
This commit is contained in:
Jadi 2024-05-06 20:53:38 +03:30 committed by Ben Wiederhake
parent b029e27dd8
commit 9303f8e5b1
2 changed files with 9 additions and 3 deletions

View file

@ -56,7 +56,10 @@ static TEST_MOUNT_MOUNTPOINT: &str = "mount";
static TEST_MOUNT_OTHER_FILESYSTEM_FILE: &str = "mount/DO_NOT_copy_me.txt";
#[cfg(unix)]
static TEST_NONEXISTENT_FILE: &str = "nonexistent_file.txt";
#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
#[cfg(all(
unix,
not(any(target_os = "android", target_os = "macos", target_os = "openbsd"))
))]
use crate::common::util::compare_xattrs;
/// Assert that mode, ownership, and permissions of two metadata objects match.
@ -3748,7 +3751,10 @@ fn test_cp_no_such() {
.stderr_is("cp: 'no-such/' is not a directory\n");
}
#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))]
#[cfg(all(
unix,
not(any(target_os = "android", target_os = "macos", target_os = "openbsd"))
))]
#[test]
fn test_acl_preserve() {
use std::process::Command;

View file

@ -1569,7 +1569,7 @@ fn test_mv_dir_into_path_slash() {
assert!(at.dir_exists("f/b"));
}
#[cfg(all(unix, not(target_os = "macos")))]
#[cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))]
#[test]
fn test_acl() {
use std::process::Command;