diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-03-14 20:28:35 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-03-14 20:28:35 +0100 |
commit | 670461a51e44eb743586213581e23f730efe80cd (patch) | |
tree | e20c3bd68d97e221fa7bbcfc2dc68fcd0d325f09 | |
parent | a8f5a8beff38cba3c33cdb95556fa9e925e4ad41 (diff) | |
download | kit-670461a51e44eb743586213581e23f730efe80cd.zip |
Carriage return fix
-rw-r--r-- | source/kit_test/test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/kit_test/test.c b/source/kit_test/test.c index e60413a..ed7e7a7 100644 --- a/source/kit_test/test.c +++ b/source/kit_test/test.c @@ -195,6 +195,7 @@ int kit_run_tests(int argc, char **argv) { !carriage_return || no_color || print_color(yellow); carriage_return || no_color || print_color(light); quiet || printf("` %s ", kit_tests_list.tests[i].test_name); + !carriage_return || quiet || printf("\r"); quiet || fflush(stdout); struct timespec begin, end; @@ -218,10 +219,9 @@ int kit_run_tests(int argc, char **argv) { total_assertion_count += kit_tests_list.tests[i].assertions; - if (carriage_return) { - no_color || print_color(light); - quiet || printf("\r` %s ", kit_tests_list.tests[i].test_name); - } + !carriage_return || no_color || print_color(light); + !carriage_return || quiet || + printf("` %s ", kit_tests_list.tests[i].test_name); int const l = (int) strlen(kit_tests_list.tests[i].test_name); quiet || printf("%*c", line_width - l, ' '); |