kernel32/tests: WaitCommEvent may sometimes return immediately on a busy system when write operation to a COM-port has already completed.
This commit is contained in:
parent
0db996e14c
commit
53e727ef95
|
@ -939,7 +939,7 @@ static void test_waittxempty(void)
|
|||
evtmask = 0;
|
||||
SetLastError(0xdeadbeef);
|
||||
res = WaitCommEvent(hcom, &evtmask, &ovl_wait);
|
||||
ok(!res && GetLastError() == ERROR_IO_PENDING, "%d: WaitCommEvent error %d\n", i, GetLastError());
|
||||
ok((!res && GetLastError() == ERROR_IO_PENDING) || res /* busy system */, "%d: WaitCommEvent error %d\n", i, GetLastError());
|
||||
|
||||
res = WaitForSingleObject(ovl_wait.hEvent, TIMEOUT);
|
||||
if (i == 0)
|
||||
|
|
Loading…
Reference in New Issue