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| {