[PATCH] kernel32/tests: Avoid testing that WaitCommEvent() doesn't return immediately.

Zebediah Figura z.figura12 at gmail.com
Thu Jul 9 22:58:09 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/kernel32/tests/comm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c
index a43a290947..f82e5e6067 100644
--- a/dlls/kernel32/tests/comm.c
+++ b/dlls/kernel32/tests/comm.c
@@ -852,7 +852,7 @@ static void test_waittxempty(void)
     before = GetTickCount();
     SetLastError(0xdeadbeef);
     res = WaitCommEvent(hcom, &evtmask, &ovl_wait);
-    ok(!res && GetLastError() == ERROR_IO_PENDING, "WaitCommEvent error %d\n", GetLastError());
+    ok(res || GetLastError() == ERROR_IO_PENDING, "WaitCommEvent error %d\n", GetLastError());
     after = GetTickCount();
     ok(after - before < 30, "WaitCommEvent should have returned immediately, took %d ms\n", after - before);
     res = WaitForSingleObject(ovl_wait.hEvent, 1500);
-- 
2.27.0




More information about the wine-devel mailing list