File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments