diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 20:22:20 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 20:22:20 -0500 |
commit | e6a6a3b47a0da3ae477d4b832e9b1bd05f4a8128 (patch) | |
tree | 5a58380af1f351fe3e001ec155ef1e302709dc1a | |
parent | fde01d16193b2d7e5b9482bcc97be9450878afab (diff) |
fix color and indicator output
-rw-r--r-- | test.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -25,12 +25,10 @@ static void print_result(int success, const char *format, ...) char indicator = '+'; if (success) { - set_output_color(GREEN); - printf("+ "); + color = GREEN; passed++; } else { - set_output_color(RED); - printf("- "); + color = RED; failed++; } |