mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:15:49 +00:00
include: Print "test skipped" messages in colour.
This commit is contained in:
parent
90cdc49d26
commit
2bf75f9106
|
@ -283,6 +283,7 @@ const char *winetest_elapsed(void)
|
||||||
static const char color_reset[] = "\e[0m";
|
static const char color_reset[] = "\e[0m";
|
||||||
static const char color_dark_red[] = "\e[31m";
|
static const char color_dark_red[] = "\e[31m";
|
||||||
static const char color_yellow[] = "\e[33m";
|
static const char color_yellow[] = "\e[33m";
|
||||||
|
static const char color_blue[] = "\e[34m";
|
||||||
static const char color_bright_red[] = "\e[1;91m";
|
static const char color_bright_red[] = "\e[1;91m";
|
||||||
|
|
||||||
static void winetest_printf( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
static void winetest_printf( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
||||||
|
@ -436,8 +437,10 @@ void winetest_vskip( const char *msg, va_list args )
|
||||||
{
|
{
|
||||||
if (winetest_add_line() < winetest_mute_threshold)
|
if (winetest_add_line() < winetest_mute_threshold)
|
||||||
{
|
{
|
||||||
|
if (winetest_color) printf( color_blue );
|
||||||
winetest_print_context( "Tests skipped: " );
|
winetest_print_context( "Tests skipped: " );
|
||||||
vprintf(msg, args);
|
vprintf(msg, args);
|
||||||
|
if (winetest_color) printf( color_reset );
|
||||||
InterlockedIncrement(&skipped);
|
InterlockedIncrement(&skipped);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue