From 6f01f3eb2c5bc6b34d2a33bb4d4eb42704d22db6 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Tue, 5 Sep 2023 06:07:45 +0200 Subject: test --- source/kit_test/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/kit_test/test.c') 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; -- cgit v1.2.3