summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c
index 41ee715..86ababa 100644
--- a/source/kit_test/test.c
+++ b/source/kit_test/test.c
@@ -181,7 +181,9 @@ int kit_run_tests(int argc, char **argv) {
int duration = (int) (ns_to_ms(end.tv_nsec - begin.tv_nsec) +
sec_to_ms(end.tv_sec - begin.tv_sec));
- for (j = 0; j < kit_tests_list.v[i].assertions; j++)
+ for (j = 0; j < kit_tests_list.v[i].assertions &&
+ j < KIT_TEST_ASSERTIONS_LIMIT;
+ j++)
if (kit_tests_list.v[i].status[j] == 0) {
fail_assertion_count++;
test_status = 0;