Francois Gouget : kernel32/tests: Check that WaitCommEvent() returns immediately in overlapped mode.

Alexandre Julliard julliard at winehq.org
Fri Nov 1 15:17:06 CDT 2013


Module: wine
Branch: master
Commit: c31280d6e14f19fed7db589891a1688b7a7a3fdb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c31280d6e14f19fed7db589891a1688b7a7a3fdb

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Nov  1 10:37:41 2013 +0100

kernel32/tests: Check that WaitCommEvent() returns immediately in overlapped mode.

---

 dlls/kernel32/tests/comm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c
index 455ee89..db5a369 100644
--- a/dlls/kernel32/tests/comm.c
+++ b/dlls/kernel32/tests/comm.c
@@ -855,6 +855,8 @@ static void test_waittxempty(void)
     SetLastError(0xdeadbeef);
     res = WaitCommEvent(hcom, &evtmask, &ovl_wait);
     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);
     ok(res == WAIT_OBJECT_0, "WaitCommEvent failed with a timeout\n");
     if (res == WAIT_OBJECT_0)




More information about the wine-cvs mailing list