Commit 39f59eb0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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

parent fb8a44f3
...@@ -852,7 +852,7 @@ static void test_waittxempty(void) ...@@ -852,7 +852,7 @@ static void test_waittxempty(void)
before = GetTickCount(); before = GetTickCount();
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
res = WaitCommEvent(hcom, &evtmask, &ovl_wait); 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(); after = GetTickCount();
ok(after - before < 30, "WaitCommEvent should have returned immediately, took %d ms\n", after - before); ok(after - before < 30, "WaitCommEvent should have returned immediately, took %d ms\n", after - before);
res = WaitForSingleObject(ovl_wait.hEvent, 1500); res = WaitForSingleObject(ovl_wait.hEvent, 1500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment