diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 06:07:45 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-05 06:07:45 +0200 |
commit | 6f01f3eb2c5bc6b34d2a33bb4d4eb42704d22db6 (patch) | |
tree | 8a04a07c82c7fa2d7974f8c984ab5105cd6cc977 /source | |
parent | c7934218d7bfcba408b725c41fab1f3d5d890162 (diff) | |
download | kit-6f01f3eb2c5bc6b34d2a33bb4d4eb42704d22db6.zip |
test
Diffstat (limited to 'source')
-rw-r--r-- | source/kit_test/test.c | 4 |
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; |