1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #6349 from jadijadi/disabling-xattrs-openbsd

Disabling xattrs tests on OpenBSD
This commit is contained in:
Sylvestre Ledru 2024-05-05 21:52:16 +02:00 committed by GitHub
commit 421f3a9371
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -782,7 +782,7 @@ pub fn get_root_path() -> &'static str {
/// # Returns /// # Returns
/// ///
/// `true` if both paths have the same set of extended attributes, `false` otherwise. /// `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 { pub fn compare_xattrs<P: AsRef<std::path::Path>>(path1: P, path2: P) -> bool {
let get_sorted_xattrs = |path: P| { let get_sorted_xattrs = |path: P| {
xattr::list(path) xattr::list(path)
@ -3611,7 +3611,7 @@ mod tests {
assert!(command.tmpd.is_some()); assert!(command.tmpd.is_some());
} }
#[cfg(all(unix, not(target_os = "macos")))] #[cfg(all(unix, not(any(target_os = "macos", target_os = "openbsd"))))]
#[test] #[test]
fn test_compare_xattrs() { fn test_compare_xattrs() {
use tempfile::tempdir; use tempfile::tempdir;