From c2cebabba05eff0436faf90bbd691c1e36f7013c Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Sun, 11 Feb 2024 04:05:38 -0500 Subject: add debug statements and start some testing --- kernel/test/proctest.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/test/proctest.c') diff --git a/kernel/test/proctest.c b/kernel/test/proctest.c index 31067cd..eb70c81 100644 --- a/kernel/test/proctest.c +++ b/kernel/test/proctest.c @@ -21,6 +21,7 @@ void *test_func(long arg1, void *arg2) test_assert(arg1 == proc_as_arg->p_pid, "Arguments are not set up correctly"); test_assert(proc_as_arg->p_state == PROC_RUNNING, "Process state is not running"); test_assert(list_empty(&proc_as_arg->p_children), "There should be no child processes"); + dbg(DBG_TEST, "Process %s is running\n", proc_as_arg->p_name); return NULL; } @@ -36,6 +37,7 @@ void test_termination() int status; while (do_waitpid(-1, &status, 0) != -ECHILD) { + dbg(DBG_TEST, "Waiting for child process to terminate\n"); test_assert(status == 0, "Returned status not set correctly"); count++; } -- cgit v1.2.3-70-g09d2