summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-28 20:22:20 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-28 20:22:20 -0500
commite6a6a3b47a0da3ae477d4b832e9b1bd05f4a8128 (patch)
tree5a58380af1f351fe3e001ec155ef1e302709dc1a
parentfde01d16193b2d7e5b9482bcc97be9450878afab (diff)
fix color and indicator output
-rw-r--r--test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test.c b/test.c
index 51ce05f..f6e8ead 100644
--- a/test.c
+++ b/test.c
@@ -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++;
}