From: Francois Gouget fgouget@codeweavers.com
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=47873 --- dlls/kernel32/tests/comm.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c index d4cc81a64f3..ec63d4ae553 100644 --- a/dlls/kernel32/tests/comm.c +++ b/dlls/kernel32/tests/comm.c @@ -856,6 +856,7 @@ static void test_waittxempty(void) after = GetTickCount(); ok(after - before < 30, "WaitCommEvent should have returned immediately, took %ld ms\n", after - before); res = WaitForSingleObject(ovl_wait.hEvent, 1500); + flaky ok(res == WAIT_OBJECT_0, "WaitCommEvent failed with a timeout\n"); if (res == WAIT_OBJECT_0) { @@ -877,12 +878,15 @@ static void test_waittxempty(void) res = FALSE; } after = GetTickCount(); + flaky ok(res, "WaitCommEvent error %ld\n", GetLastError()); + flaky ok(evtmask & EV_TXEMPTY, "WaitCommEvent: expected EV_TXEMPTY, got %#lx\n", evtmask); CloseHandle(ovl_wait.hEvent);
timediff = after - before; trace("WaitCommEvent for EV_TXEMPTY took %ld ms (timeout 1500)\n", timediff); + flaky ok(timediff < 1200, "WaitCommEvent used %ld ms for waiting\n", timediff);
res = WaitForSingleObject(ovl_write.hEvent, 0);