tests/by-util/test_cp.rs: Merge #[cfg]

Co-authored-by: Dorian Péron <72708393+RenjiSann@users.noreply.github.com>
This commit is contained in:
Nicolas Boichat 2025-07-30 21:04:03 +08:00 committed by GitHub
parent 4b11692db3
commit f4bf8987cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<u32> {
// Get the first group that doesn't match current
nix::unistd::getgroups().ok()?.iter().find_map(|group| {