mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
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
This commit is contained in:
parent
3b96ff1d10
commit
19d42c0339
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue