extern crate proc; // https://github.com/rust-lang/rust/issues/64450 #[allow(unused_imports)] use proc::*; #[test_if(root)] #[cfg(not(any(target_os = "macos", target_os = "freebsd", target_os = "openbsd")))] fn setpid() { use uapi::*; setresgid(3, 4, 5).unwrap(); assert_eq!(getresgid().unwrap(), (3, 4, 5)); setresuid(1, 2, 0).unwrap(); assert_eq!(getresuid().unwrap(), (1, 2, 0)); }