Skip to content

Commit 4e58bb4

Browse files
add missing tests to the suite
1 parent bc0cf3a commit 4e58bb4

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

tests/runner.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,23 @@ int main(void) {
7777
.command = vmasm("exceptions/open_syscall_fail.asm"),
7878
.expected = sv("EXCEPTION_OPEN_SYSCALL_FAIL"));
7979

80+
add_test(&exceptions,
81+
.name = sv("Exception stack overflow "),
82+
.command = vmasm("exceptions/stack_overflow.asm"),
83+
.expected = sv("EXCEPTION_STACK_OVERFLOW"));
8084

81-
run_entire_suite(exceptions, .save_failed = &failed);
85+
add_test(&exceptions,
86+
.name = sv("Exception stack underflow"),
87+
.command = vmasm("exceptions/stack_underflow.asm"),
88+
.expected = sv("EXCEPTION_STACK_UNDERFLOW"));
8289

90+
add_test(&exceptions,
91+
.name = sv("Exception crash intentional"),
92+
.command = sv("../vmasm exceptions/crash_intentional.asm -run -crash"),
93+
.expected = sv("EXCEPTION_CRASH_INTENTIONAL"));
94+
95+
run_entire_suite(exceptions, .save_failed = &failed);
8396

8497
return 0;
98+
8599
}

0 commit comments

Comments
 (0)