2 // ignore-windows - this is a unix-specific test
5 // ignore-musl - returns dummy result for _SC_NGROUPS_MAX
7 #![feature(rustc_private)]
11 use std
::process
::Command
;
12 use std
::os
::unix
::process
::CommandExt
;
21 let max_ngroups
= unsafe { libc::sysconf(libc::_SC_NGROUPS_MAX) }
;
22 let max_ngroups
= max_ngroups
as u32 + 1;
23 let vec
: Vec
<u32> = (0..max_ngroups
).collect();
24 let p
= Command
::new("/bin/id").groups(&vec
[..]).spawn();