conhost/tests: Silence debug output in child process if std output is a console.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ca96e04637
commit
87a9d790ab
|
@ -1402,7 +1402,11 @@ START_TEST(tty)
|
|||
if (argc > 3)
|
||||
{
|
||||
HANDLE pipe;
|
||||
DWORD mode;
|
||||
sscanf(argv[3], "%p", &pipe);
|
||||
/* if std output is console, silence debug output so it does not interfere with tests */
|
||||
if (GetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), &mode))
|
||||
winetest_debug = 0;
|
||||
child_process(pipe);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue