diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-07 00:52:37 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-07 00:52:37 +0400 |
commit | 3cfe668e7628dbcb06ea3c3b54261e202d148300 (patch) | |
tree | a245b700c6b4fee8d3216220fc13985ef715cc32 /source/kit_test | |
parent | f56c8875766f2de7ad6f69a6bd93685ac1ddd8dd (diff) | |
download | kit-3cfe668e7628dbcb06ea3c3b54261e202d148300.zip |
Fix error reporting format
Diffstat (limited to 'source/kit_test')
-rw-r--r-- | source/kit_test/run_tests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/kit_test/run_tests.c b/source/kit_test/run_tests.c index c08f946..333aa58 100644 --- a/source/kit_test/run_tests.c +++ b/source/kit_test/run_tests.c @@ -7,16 +7,16 @@ 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("Kit Test error: Too many tests!"); + printf("\nKit Test error: Too many tests!\n"); return; } int const n = kit_tests_list.tests[i].assertions++; if (n >= KIT_TEST_ASSERTIONS_LIMIT) { - printf( - "Kit Test error: Too many test assertions for test \"%s\"!", - kit_tests_list.tests[i].test_name); + printf("\nKit Test error: Too many test assertions for test " + "\"%s\"!\n", + kit_tests_list.tests[i].test_name); return; } |