mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-21 04:18:06 +00:00
Fix comm tests on Win9x.
This commit is contained in:
parent
828fd75a96
commit
7eb81fabeb
|
@ -713,11 +713,12 @@ static void test_ReadTimeOut(HANDLE hcom)
|
|||
ok(SetCommTimeouts(hcom, &timeouts),"SetCommTimeouts failed\n");
|
||||
|
||||
before = GetTickCount();
|
||||
SetLastError(0xdeadbeef);
|
||||
res = ReadFile(hcom, rbuf, sizeof(rbuf), &read, NULL);
|
||||
LastError = GetLastError();
|
||||
after = GetTickCount();
|
||||
todo_wine ok( res == TRUE, "A timed-out read should return TRUE\n");
|
||||
todo_wine ok( LastError == NO_ERROR, "A timed-out read is not an error\n");
|
||||
todo_wine ok( LastError == 0xdeadbeef, "err=%ld\n", LastError);
|
||||
timediff = after - before;
|
||||
ok( timediff > TIMEOUT>>2 && timediff < TIMEOUT *2,
|
||||
"Unexpected TimeOut %ld, expected %d\n", timediff, TIMEOUT);
|
||||
|
|
Loading…
Reference in a new issue