mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
[core:testing] add global_fail_timeout_thread nil check
Fixed an issue where test would always fail unless set_fail_timeout was called.
This commit is contained in:
@@ -203,7 +203,7 @@ run_internal_test :: proc(t: ^T, it: Internal_Test) {
|
|||||||
thread.it.p(t)
|
thread.it.p(t)
|
||||||
|
|
||||||
sema_post(&global_fail_timeout_semaphore)
|
sema_post(&global_fail_timeout_semaphore)
|
||||||
thread_join_and_destroy(global_fail_timeout_thread)
|
if global_fail_timeout_thread != nil do thread_join_and_destroy(global_fail_timeout_thread)
|
||||||
|
|
||||||
thread.success = true
|
thread.success = true
|
||||||
sema_post(&global_threaded_runner_semaphore)
|
sema_post(&global_threaded_runner_semaphore)
|
||||||
|
|||||||
Reference in New Issue
Block a user