From cfc6457681ca0c19cac4b1ab0eb79a98dba37dcb Mon Sep 17 00:00:00 2001 From: Lorenzo Rossi <65499789+rossilor95@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:40:14 +0200 Subject: [PATCH] chown: restrict no-dereference symlink ctime test to Linux (#12556) --- tests/by-util/test_chown.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;