mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
include: Print "test succeeded" messages in colour.
This commit is contained in:
parent
2bf75f9106
commit
5b1bb09bbd
1 changed files with 3 additions and 0 deletions
|
@ -282,6 +282,7 @@ const char *winetest_elapsed(void)
|
|||
|
||||
static const char color_reset[] = "\e[0m";
|
||||
static const char color_dark_red[] = "\e[31m";
|
||||
static const char color_green[] = "\e[32m";
|
||||
static const char color_yellow[] = "\e[33m";
|
||||
static const char color_blue[] = "\e[34m";
|
||||
static const char color_bright_red[] = "\e[1;91m";
|
||||
|
@ -399,7 +400,9 @@ int winetest_vok( int condition, const char *msg, va_list args )
|
|||
if (winetest_report_success ||
|
||||
(winetest_time && GetTickCount() >= winetest_last_time + 1000))
|
||||
{
|
||||
if (winetest_color) printf( color_green );
|
||||
winetest_printf("Test succeeded\n");
|
||||
if (winetest_color) printf( color_reset );
|
||||
}
|
||||
InterlockedIncrement(&successes);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue