diff options
Diffstat (limited to 'kernel/test')
-rw-r--r-- | kernel/test/proctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/test/proctest.c b/kernel/test/proctest.c index ab69512..e8b8ba8 100644 --- a/kernel/test/proctest.c +++ b/kernel/test/proctest.c @@ -273,7 +273,6 @@ void test_out_of_order_termination() "Expected: %d, Actual: %d number of processes have been cleaned up\n", 3, count); } - /* Test threads' cancellation fields. */ @@ -299,6 +298,7 @@ void test_cancellation() int status; int ret = do_waitpid(new_proc1->p_pid, &status, 0); test_assert(ret != -ECHILD, "Should have found the process"); + test_assert(ret == new_proc1->p_pid, "Should have found the correct process"); test_assert(status == 1, "Returned status not set correctly"); test_assert(did_run == 0, "Thread should not have run if it was cancelled"); } |