Fix other usertests: xstate -> exit_code
This commit is contained in:
parent
5e798029b0
commit
f1e772a984
5 changed files with 16 additions and 16 deletions
|
@ -29,10 +29,10 @@ pub fn main() -> i32 {
|
|||
exec(*test);
|
||||
panic!("unreachable!");
|
||||
} else {
|
||||
let mut xstate: i32 = Default::default();
|
||||
let wait_pid = waitpid(pid as usize, &mut xstate);
|
||||
let mut exit_code: i32 = Default::default();
|
||||
let wait_pid = waitpid(pid as usize, &mut exit_code);
|
||||
assert_eq!(pid, wait_pid);
|
||||
println!("\x1b[32mUsertests: Test {} in Process {} exited with code {}\x1b[0m", test, pid, xstate);
|
||||
println!("\x1b[32mUsertests: Test {} in Process {} exited with code {}\x1b[0m", test, pid, exit_code);
|
||||
}
|
||||
}
|
||||
println!("Usertests passed!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue