From 6f5872cbc58d5a6e26f651baa27412b010943de7 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 15 Sep 2020 17:07:48 +0200 Subject: [PATCH] conhost/tests: Improve handling slow conhost replies. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- programs/conhost/tests/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/conhost/tests/tty.c b/programs/conhost/tests/tty.c index f536ad03af0..355a4cd7c70 100644 --- a/programs/conhost/tests/tty.c +++ b/programs/conhost/tests/tty.c @@ -44,10 +44,10 @@ static void fetch_console_output_(unsigned int line) { ok_(__FILE__,line)(GetLastError() == ERROR_IO_PENDING, "read failed: %u\n", GetLastError()); if (GetLastError() != ERROR_IO_PENDING) return; - WaitForSingleObject(o.hEvent, 1000); + WaitForSingleObject(o.hEvent, 5000); } ret = GetOverlappedResult(console_pipe, &o, &count, FALSE); - if (!ret && GetLastError() == ERROR_IO_PENDING) + if (!ret && GetLastError() == ERROR_IO_INCOMPLETE) CancelIoEx(console_pipe, &o); ok_(__FILE__,line)(ret, "Read file failed: %u\n", GetLastError());