mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
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:
parent
4b11692db3
commit
f4bf8987cd
1 changed files with 1 additions and 2 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue