Make the core:testing runner on windows run in a separate thread to handle crashes in more safe manner

This commit is contained in:
gingerBill
2021-05-01 22:54:27 +01:00
parent 2dbdff07c5
commit 52d38ae42b
5 changed files with 208 additions and 7 deletions
+2 -4
View File
@@ -55,11 +55,9 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
logf(t, "[Test: %s]", it.name);
// TODO(bill): Catch panics
{
it.p(t);
}
run_internal_test(t, it);
if t.error_count != 0 {
if failed(t) {
logf(t, "[%s : FAILURE]", it.name);
} else {
logf(t, "[%s : SUCCESS]", it.name);