Fix other usertests: xstate -> exit_code
This commit is contained in:
parent
ae4c317dd4
commit
21095633d5
5 changed files with 16 additions and 16 deletions
|
@ -56,13 +56,13 @@ pub fn main() -> i32 {
|
|||
|
||||
println!("fork ok.");
|
||||
|
||||
let mut xstate: i32 = 0;
|
||||
let mut exit_code: i32 = 0;
|
||||
for _ in 0..NUM {
|
||||
if wait(&mut xstate) < 0 {
|
||||
if wait(&mut exit_code) < 0 {
|
||||
panic!("wait failed.");
|
||||
}
|
||||
}
|
||||
assert!(wait(&mut xstate) < 0);
|
||||
assert!(wait(&mut exit_code) < 0);
|
||||
println!("matrix passed.");
|
||||
0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue