diff options
author | Michael Foiani <mfoiani@cs.brown.edu> | 2024-02-11 04:05:38 -0500 |
---|---|---|
committer | Michael Foiani <mfoiani@cs.brown.edu> | 2024-02-11 04:05:38 -0500 |
commit | c2cebabba05eff0436faf90bbd691c1e36f7013c (patch) | |
tree | 395bd6c7513b028c82b9c4cd5ffc1ebf8e1787ca /kernel/test | |
parent | 65ece110519f88227039921b09dab60ec4d3d982 (diff) |
add debug statements and start some testing
Diffstat (limited to 'kernel/test')
-rw-r--r-- | kernel/test/proctest.c | 2 |
1 files changed, 2 insertions, 0 deletions
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++; } |