aboutsummaryrefslogtreecommitdiff
path: root/core/testing/runner.odin
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-07-16 18:44:18 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-07-16 18:44:18 +0200
commit28fac62a022b147042bc0e1c49a89f7fe611e19c (patch)
tree1cf180c05e6cc06ac91d95cb1fbd8589c179bc91 /core/testing/runner.odin
parent03426175aea8b3d3a1ebea550613f2155ea07f9a (diff)
fix some bugs with -disable-assert
Diffstat (limited to 'core/testing/runner.odin')
-rw-r--r--core/testing/runner.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index fa7c2ffd2..c27c2124a 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -654,8 +654,8 @@ runner :: proc(internal_tests: []Internal_Test) -> bool {
#no_bounds_check pkg := report.packages_by_name[it.pkg]
pkg.frame_ready = false
- fmt.assertf(thread.pool_stop_task(&pool, test_index),
- "A signal (%v) was raised to stop test #%i %s.%s, but it was unable to be found.",
+ found := thread.pool_stop_task(&pool, test_index)
+ fmt.assertf(found, "A signal (%v) was raised to stop test #%i %s.%s, but it was unable to be found.",
reason, test_index, it.pkg, it.name)
// The order this is handled in is a little particular.