From f4bf8987cd5d0eed77b54fb3fe45cadaa8791034 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 30 Jul 2025 21:04:03 +0800 Subject: [PATCH] tests/by-util/test_cp.rs: Merge #[cfg] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dorian Péron <72708393+RenjiSann@users.noreply.github.com> --- tests/by-util/test_cp.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/by-util/test_cp.rs b/tests/by-util/test_cp.rs index 432cff313..037273652 100644 --- a/tests/by-util/test_cp.rs +++ b/tests/by-util/test_cp.rs @@ -3103,8 +3103,7 @@ fn test_cp_fifo() { assert_eq!(permission, "prwx-wx--x".to_string()); } -#[cfg(unix)] -#[cfg(not(target_vendor = "apple"))] +#[cfg(all(unix, not(target_vendor = "apple")))] fn find_other_group(current: u32) -> Option { // Get the first group that doesn't match current nix::unistd::getgroups().ok()?.iter().find_map(|group| {