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
+5 -2
View File
@@ -29,12 +29,15 @@ T :: struct {
error :: proc(t: ^T, args: ..any, loc := #caller_location) {
log(t=t, args=args, loc=loc);
fmt.wprintf(t.w, "%v: ", loc);
fmt.wprintln(t.w, ..args);
t.error_count += 1;
}
errorf :: proc(t: ^T, format: string, args: ..any, loc := #caller_location) {
logf(t=t, format=format, args=args, loc=loc);
fmt.wprintf(t.w, "%v: ", loc);
fmt.wprintf(t.w, format, ..args);
fmt.wprintln(t.w);
t.error_count += 1;
}