summaryrefslogtreecommitdiff
path: root/src/user/app/tests/kernel/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/tests/kernel/misc.c')
-rw-r--r--src/user/app/tests/kernel/misc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/user/app/tests/kernel/misc.c b/src/user/app/tests/kernel/misc.c
index e22cba2..c0bb6b3 100644
--- a/src/user/app/tests/kernel/misc.c
+++ b/src/user/app/tests/kernel/misc.c
@@ -8,14 +8,11 @@
static void test_fault_kill(void) {
if (!fork()) { /* invalid memory access */
asm volatile("movb $69, 0" ::: "memory");
- // TODO test_fail which works in children
- printf("this shouldn't happen");
- exit(-1);
+ test_fail();
}
if (!fork()) { /* #GP */
asm volatile("hlt" ::: "memory");
- printf("this shouldn't happen");
- exit(-1);
+ test_fail();
}
int await_cnt = 0;