summaryrefslogtreecommitdiff
path: root/src/user/app/tests/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/tests/tests.c')
-rw-r--r--src/user/app/tests/tests.c5
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();