conhost/tests: Wait for child process in test_pseudoconsole.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-09-11 15:42:09 +02:00 committed by Alexandre Julliard
parent 129149d212
commit a26bb7b2ef
1 changed files with 5 additions and 0 deletions

View File

@ -1277,6 +1277,11 @@ static void test_pseudoconsole(void)
}
else win_skip("Skipping tty output tests on broken Windows version\n");
CloseHandle(child_pipe);
wait_child_process(child_process);
CloseHandle(child_process);
expect_empty_output();
pClosePseudoConsole(console);
CloseHandle(console_pipe_end);
CloseHandle(console_pipe);