Catch SIGILL, SIGFPE, SIGSEGV in the test runner

This commit is contained in:
Feoramund
2024-06-02 14:54:31 -04:00
parent fb37572c4c
commit d1723664a7
4 changed files with 224 additions and 12 deletions
+10 -2
View File
@@ -2,10 +2,18 @@
//+build js, wasi, freestanding
package testing
setup_signal_handler :: proc() {
_setup_signal_handler :: proc() {
// Do nothing.
}
should_abort :: proc() -> bool {
_setup_task_signal_handler :: proc(test_index: int) {
// Do nothing.
}
_should_stop_runner :: proc() -> bool {
return false
}
_should_stop_test :: proc() -> (test_index: int, reason: Stop_Reason, ok: bool) {
return 0, {}, false
}