Commit 90cdc49d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

include: Print "test marked todo" messages in colour.

parent 05386fd0
...@@ -282,6 +282,7 @@ const char *winetest_elapsed(void) ...@@ -282,6 +282,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_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);
...@@ -369,8 +370,10 @@ int winetest_vok( int condition, const char *msg, va_list args ) ...@@ -369,8 +370,10 @@ int winetest_vok( int condition, const char *msg, va_list args )
{ {
if (winetest_debug > 0) if (winetest_debug > 0)
{ {
if (winetest_color) printf( color_yellow );
winetest_print_context( "Test marked todo: " ); winetest_print_context( "Test marked todo: " );
vprintf(msg, args); vprintf(msg, args);
if (winetest_color) printf( color_reset );
} }
InterlockedIncrement(&todo_successes); InterlockedIncrement(&todo_successes);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment