Skip to content

Commit 23f9314

Browse files
slo1KodrAus
andcommitted
Update src/test/ui/command/command-setgroups.rs
Co-authored-by: Ashley Mannix <[email protected]>
1 parent 41e6b23 commit 23f9314

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/ui/command/command-setgroups.rs

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ use std::process::Command;
1111
use std::os::unix::process::CommandExt;
1212

1313
fn main() {
14+
#[cfg(unix)]
15+
run()
16+
}
17+
18+
#[cfg(unix)]
19+
fn run() {
1420
let max_ngroups = unsafe { libc::sysconf(libc::_SC_NGROUPS_MAX) };
1521
let max_ngroups = max_ngroups as u32 + 1;
1622
let vec: Vec<u32> = (0..max_ngroups).collect();

0 commit comments

Comments
 (0)