diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-01 22:54:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-01 22:54:27 +0100 |
| commit | 52d38ae42b15311102719d25b6f285c43af701bb (patch) | |
| tree | 9b8a62edafb84d437e83dcd0e0ba538b38b11bcd /core/testing/testing.odin | |
| parent | 2dbdff07c54ad8d4603af8361735eb200fe3cab7 (diff) | |
Make the core:testing runner on windows run in a separate thread to handle crashes in more safe manner
Diffstat (limited to 'core/testing/testing.odin')
| -rw-r--r-- | core/testing/testing.odin | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/testing/testing.odin b/core/testing/testing.odin index a431d8575..8a32ce7c8 100644 --- a/core/testing/testing.odin +++ b/core/testing/testing.odin @@ -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; } |