Module: wine Branch: master Commit: a26bb7b2ef50cf0d1360b35b093b7e4ef11aa6d0 URL: https://source.winehq.org/git/wine.git/?a=commit;h=a26bb7b2ef50cf0d1360b35b0...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Sep 11 15:42:09 2020 +0200
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
---
programs/conhost/tests/tty.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/programs/conhost/tests/tty.c b/programs/conhost/tests/tty.c index e0e29d5c4d..f536ad03af 100644 --- a/programs/conhost/tests/tty.c +++ b/programs/conhost/tests/tty.c @@ -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);