Fix other usertests: xstate -> exit_code
This commit is contained in:
parent
5e798029b0
commit
f1e772a984
5 changed files with 16 additions and 16 deletions
|
@ -22,12 +22,12 @@ pub fn main() -> i32 {
|
|||
}
|
||||
}
|
||||
|
||||
let mut xstate: i32 = 0;
|
||||
let mut exit_code: i32 = 0;
|
||||
for _ in 0..NUM {
|
||||
assert!(wait(&mut xstate) > 0);
|
||||
assert_eq!(xstate, 0);
|
||||
assert!(wait(&mut exit_code) > 0);
|
||||
assert_eq!(exit_code, 0);
|
||||
}
|
||||
assert!(wait(&mut xstate) < 0);
|
||||
assert!(wait(&mut exit_code) < 0);
|
||||
println!("forktest2 test passed!");
|
||||
0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue