diff options
author | dzwdz | 2023-01-08 21:14:03 +0100 |
---|---|---|
committer | dzwdz | 2023-01-08 21:14:03 +0100 |
commit | c178ab5d5ca328d5b0072d54e3dc66d1b198df7b (patch) | |
tree | 0f9e3da6fc6133ab4bab052661bf8903e354d804 /src/user/app/tests/tests.c | |
parent | 5defe97cc8b870fa50ba01999f80974b8b21c5b5 (diff) |
kernel: let parents kill their children again
Diffstat (limited to 'src/user/app/tests/tests.c')
-rw-r--r-- | src/user/app/tests/tests.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/user/app/tests/tests.c b/src/user/app/tests/tests.c index 90a4978..f2f9aa5 100644 --- a/src/user/app/tests/tests.c +++ b/src/user/app/tests/tests.c @@ -10,6 +10,7 @@ FILE *fail_trig; void run_test(void (*fn)()) { if (!fork()) { fn(); + _syscall_filicide(); exit(0); } else { /* successful tests must return 0 */ @@ -41,10 +42,10 @@ int forkpipe(FILE **f, handle_t *h) { int main(void) { handle_t reader; if (!forkpipe(&fail_trig, &reader)) { - r_k_fdlimit(); + r_k_miscsyscall(); r_k_fs(); + r_k_fdlimit(); r_k_misc(); - r_k_miscsyscall(); r_k_path(); r_k_threads(); r_libc_esemaphore(); |