From 52f744e1069696b5756e9f14eb6bc97ac7a17d7e Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 9 Jul 2022 14:38:00 +0000 Subject: [PATCH] Test output cleanup. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3923 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/tests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests.c b/src/tests.c index 897fcce1..255f0dca 100644 --- a/src/tests.c +++ b/src/tests.c @@ -606,13 +606,17 @@ static void _tf_test_run(const tf_test_options_t* options, const char* name, voi if (!options->tests || specified) { -#define GREEN "[\e[1;32m" +#define GREEN "\e[1;32m" #define MAGENTA "\e[1;35m" #define CYAN "\e[1;36m" #define RESET "\e[0m" printf(CYAN "== running test " MAGENTA "%s" CYAN " ==\n" RESET, name); test(options); printf("[" GREEN "pass" RESET "] %s\n", name); +#undef GREEN +#undef MAGENTA +#undef CYAN +#undef RESET } }