summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2024-05-05 21:52:16 +0200
committerGitHub <noreply@github.com>2024-05-05 21:52:16 +0200
commit421f3a93719141ae9ca799cf8f09677ddd2c3499 (patch)
tree9bf15b8d40531a17b2c8d756fcd9105a0af702e0
parenta3d05e5945c09faad6107290e1afd8534e7afbc0 (diff)
parent19d42c033923ecfbaeea0f4c4e4f76fc341a4cf5 (diff)
Merge pull request #6349 from jadijadi/disabling-xattrs-openbsdmain
Disabling xattrs tests on OpenBSD
-rw-r--r--tests/common/util.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/common/util.rs b/tests/common/util.rs
index d97a19fa8..ebf95f4b4 100644
--- a/tests/common/util.rs
+++ b/tests/common/util.rs
@@ -782,7 +782,7 @@ pub fn get_root_path() -> &'static str {
/// # Returns
///
/// `true` if both paths have the same set of extended attributes, `false` otherwise.
-#[cfg(all(unix, not(target_os = "macos")))]
+#[cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))]
pub fn compare_xattrs<P: AsRef<std::path::Path>>(path1: P, path2: P) -> bool {
let get_sorted_xattrs = |path: P| {
xattr::list(path)
@@ -3611,7 +3611,7 @@ mod tests {
assert!(command.tmpd.is_some());
}
- #[cfg(all(unix, not(target_os = "macos")))]
+ #[cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))]
#[test]
fn test_compare_xattrs() {
use tempfile::tempdir;