summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/kit_test/test.c8
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, ' ');