diff --git a/lib/sudo-system/src/lib.rs b/lib/sudo-system/src/lib.rs index 3e7a73f1a..482106182 100644 --- a/lib/sudo-system/src/lib.rs +++ b/lib/sudo-system/src/lib.rs @@ -609,7 +609,7 @@ mod tests { #[test] fn pgid_test() { use super::getpgid; - assert_eq!(getpgid(std::process::id() as i32), getpgid(0)); + assert_eq!(getpgid(std::process::id() as i32).unwrap(), getpgid(0).unwrap()); } #[test] fn kill_test() {