Update ucore/forktest to fit rcore convention.

master
Yuhao Zhou 6 years ago
parent 07619a48d4
commit aeea2b569e

@ -19,12 +19,12 @@ main(void) {
} }
for (; n > 0; n --) { for (; n > 0; n --) {
if (wait() != 0) { if (wait() <= 0) {
panic("wait stopped early\n"); panic("wait stopped early\n");
} }
} }
if (wait() == 0) { if (wait() > 0) {
panic("wait got too many\n"); panic("wait got too many\n");
} }

Loading…
Cancel
Save