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
co-authored by Dorian Péron
parent 4b11692db3
commit f4bf8987cd
+1 -2
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| {