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:
Dmitry Timoshkov 2013-10-25 12:14:37 +09:00 committed by Alexandre Julliard
parent 0db996e14c
commit 53e727ef95
1 changed files with 1 additions and 1 deletions

View File

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