Skip to content

Commit 19d42c0

Browse files
committed
Disabling xattrs function and tests on OpenBSD
The test_compare_xattrs test fails on OpenBSD because OpenBSD does not support xattrs. Disabling this function and its test for target_os = openbsd resolves the issue. Fixes #6348
1 parent 3b96ff1 commit 19d42c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/common/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ pub fn get_root_path() -> &'static str {
782782
/// # Returns
783783
///
784784
/// `true` if both paths have the same set of extended attributes, `false` otherwise.
785-
#[cfg(all(unix, not(target_os = "macos")))]
785+
#[cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))]
786786
pub fn compare_xattrs<P: AsRef<std::path::Path>>(path1: P, path2: P) -> bool {
787787
let get_sorted_xattrs = |path: P| {
788788
xattr::list(path)
@@ -3611,7 +3611,7 @@ mod tests {
36113611
assert!(command.tmpd.is_some());
36123612
}
36133613

3614-
#[cfg(all(unix, not(target_os = "macos")))]
3614+
#[cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))]
36153615
#[test]
36163616
fn test_compare_xattrs() {
36173617
use tempfile::tempdir;

0 commit comments

Comments
 (0)