diff --git a/tests/by-util/test_chown.rs b/tests/by-util/test_chown.rs index c03682b4e..ed826b564 100644 --- a/tests/by-util/test_chown.rs +++ b/tests/by-util/test_chown.rs @@ -3,7 +3,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. // spell-checker:ignore (words) agroupthatdoesntexist auserthatdoesntexist cuuser groupname notexisting passgrp - +#[cfg(all(unix, not(target_os = "openbsd")))] use std::os::unix::fs::MetadataExt; use uutests::util::{CmdResult, TestScenario, is_ci, run_ucmd_as_root}; use uutests::util_name; @@ -900,7 +900,7 @@ fn test_chown_reference_file() { } #[test] -#[cfg(unix)] +#[cfg(all(unix, not(target_os = "openbsd")))] fn test_chown_no_dereference_symlink_to_dir() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures;