mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 12:54:10 +00:00
test.h: WINETEST_COLOR=auto only outputs colors to a TTY.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
e83b91ddef
commit
1cbbbd9d73
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <io.h>
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wine/debug.h>
|
||||
|
@ -676,7 +677,8 @@ int main( int argc, char **argv )
|
|||
else if (running_under_wine())
|
||||
winetest_platform = "wine";
|
||||
|
||||
if (GetEnvironmentVariableA( "WINETEST_COLOR", p, sizeof(p) )) winetest_color = atoi(p);
|
||||
if (GetEnvironmentVariableA( "WINETEST_COLOR", p, sizeof(p) ))
|
||||
winetest_color = !strcasecmp(p, "auto") ? isatty(fileno(stdout)) : atoi(p);
|
||||
if (GetEnvironmentVariableA( "WINETEST_DEBUG", p, sizeof(p) )) winetest_debug = atoi(p);
|
||||
if (GetEnvironmentVariableA( "WINETEST_INTERACTIVE", p, sizeof(p) )) winetest_interactive = atoi(p);
|
||||
if (GetEnvironmentVariableA( "WINETEST_REPORT_SUCCESS", p, sizeof(p) )) winetest_report_success = atoi(p);
|
||||
|
|
Loading…
Reference in a new issue