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:
Jacek Caban 2020-11-12 19:56:11 +01:00 committed by Alexandre Julliard
parent ca96e04637
commit 87a9d790ab
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}