Fix a test leak.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3922 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-07-09 14:33:38 +00:00
parent fb3ad0d95d
commit 7f9c01a9bb
2 changed files with 7 additions and 2 deletions

View File

@ -606,9 +606,13 @@ static void _tf_test_run(const tf_test_options_t* options, const char* name, voi
if (!options->tests || specified)
{
printf("Running test %s.\n", name);
#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("[\e[1;32mpass\e[0m] %s\n", name);
printf("[" GREEN "pass" RESET "] %s\n", name);
}
}