[PATCH 5/5] kernel32/tests: remove several todos in test_waittxempty

Dmitry Timoshkov dmitry at baikal.ru
Thu Sep 5 03:52:42 CDT 2013


Wolfgang Walter <wine at stwm.de> wrote:

> On Thursday 05 September 2013 10:42:40 you wrote:
> > Wolfgang Walter <wine at stwm.de> wrote:
> > > -        ok(!res && GetLastError() == ERROR_IO_PENDING, "%d: WaitCommEvent
> > > error %d\n", i, GetLastError()); +        ok(res || (!res &&
> > > GetLastError() == ERROR_IO_PENDING), "%d: WaitCommEvent error %d\n", i,
> > > GetLastError());
> > This change looks spurious and unrelated. Also todos must be removed
> > in the patch that fixes appropriate behaviour.
> 
> It is allowed that WaitCommEvent returns immediately with TRUE if there is an 
> event pending, as far as I can see.

WaitCommEvent always returns FALSE when device is opened in overlapped mode.

-- 
Dmitry.



More information about the wine-devel mailing list