Jacek Caban : conhost/tests: Improve handling slow conhost replies.

Alexandre Julliard julliard at winehq.org
Tue Sep 15 15:40:12 CDT 2020


Module: wine
Branch: master
Commit: 6f5872cbc58d5a6e26f651baa27412b010943de7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6f5872cbc58d5a6e26f651baa27412b010943de7

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Sep 15 17:07:48 2020 +0200

conhost/tests: Improve handling slow conhost replies.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 f536ad03af..355a4cd7c7 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());




More information about the wine-cvs mailing list