conhost/tests: Improve handling slow conhost replies.

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-15 17:07:48 +02:00 committed by Alexandre Julliard
parent 2fd27f0a04
commit 6f5872cbc5
1 changed files with 2 additions and 2 deletions

View File

@ -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());