Skip to content
Snippets Groups Projects
Commit 7eb81fab authored by Felix Nawothnig's avatar Felix Nawothnig Committed by Alexandre Julliard
Browse files

Fix comm tests on Win9x.

parent 828fd75a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment