summaryrefslogtreecommitdiff
path: root/source/kit_test/test.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-05 06:07:45 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-05 06:07:45 +0200
commit6f01f3eb2c5bc6b34d2a33bb4d4eb42704d22db6 (patch)
tree8a04a07c82c7fa2d7974f8c984ab5105cd6cc977 /source/kit_test/test.c
parentc7934218d7bfcba408b725c41fab1f3d5d890162 (diff)
downloadkit-6f01f3eb2c5bc6b34d2a33bb4d4eb42704d22db6.zip
test
Diffstat (limited to 'source/kit_test/test.c')
-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;