Zebediah Figura : kernel32/tests: Avoid testing that WaitCommEvent() doesn't return immediately.

Alexandre Julliard julliard at winehq.org
Fri Jul 10 16:30:31 CDT 2020


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

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jul  9 22:58:09 2020 -0500

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

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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




More information about the wine-cvs mailing list