From aeea2b569efe90e38b39d3c72edb4bc015837d14 Mon Sep 17 00:00:00 2001 From: Yuhao Zhou Date: Mon, 8 Apr 2019 22:30:37 +0800 Subject: [PATCH] Update ucore/forktest to fit rcore convention. --- ucore/src/forktest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucore/src/forktest.c b/ucore/src/forktest.c index 3eda228..8227622 100644 --- a/ucore/src/forktest.c +++ b/ucore/src/forktest.c @@ -19,12 +19,12 @@ main(void) { } for (; n > 0; n --) { - if (wait() != 0) { + if (wait() <= 0) { panic("wait stopped early\n"); } } - if (wait() == 0) { + if (wait() > 0) { panic("wait got too many\n"); }