Commit 7eb81fab authored by Felix Nawothnig's avatar Felix Nawothnig Committed by Alexandre Julliard

Fix comm tests on Win9x.

parent 828fd75a
......@@ -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);
......
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