mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 00:03:38 +00:00
include: Print "succeeded inside todo block" messages in colour.
This commit is contained in:
parent
549969a6fb
commit
05386fd0ac
|
@ -281,6 +281,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_bright_red[] = "\e[1;91m";
|
||||
|
||||
static void winetest_printf( const char *msg, ... ) __WINE_PRINTF_ATTR(1,2);
|
||||
|
@ -354,8 +355,10 @@ int winetest_vok( int condition, const char *msg, va_list args )
|
|||
{
|
||||
if (condition)
|
||||
{
|
||||
if (winetest_color) printf( color_dark_red );
|
||||
winetest_print_context( "Test succeeded inside todo block: " );
|
||||
vprintf(msg, args);
|
||||
if (winetest_color) printf( color_reset );
|
||||
InterlockedIncrement(&todo_failures);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue