Fix other usertests: xstate -> exit_code

This commit is contained in:
Yifan Wu 2021-02-08 18:09:00 +08:00
parent ae4c317dd4
commit 21095633d5
5 changed files with 16 additions and 16 deletions

View file

@ -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
}