summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/run_tests.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/kit_test/run_tests.c b/source/kit_test/run_tests.c
index 333aa58..2adf5f4 100644
--- a/source/kit_test/run_tests.c
+++ b/source/kit_test/run_tests.c
@@ -7,16 +7,15 @@ struct kit_tests_list kit_tests_list = { 0 };
static void report(int i, char const *file, int line, int ok) {
if (i >= KIT_TESTS_SIZE_LIMIT) {
- printf("\nKit Test error: Too many tests!\n");
+ printf("\nKit Test error: Too many tests!");
return;
}
int const n = kit_tests_list.tests[i].assertions++;
if (n >= KIT_TEST_ASSERTIONS_LIMIT) {
- printf("\nKit Test error: Too many test assertions for test "
- "\"%s\"!\n",
- kit_tests_list.tests[i].test_name);
+ printf("\nKit Test error: Too many test assertions!");
+ kit_tests_list.tests[i].status[KIT_TEST_ASSERTIONS_LIMIT - 1] = 0;
return;
}