Dmitry Timoshkov : kernel32/tests: Increase the timeout for completion of write to a COM-port.
Module: wine Branch: master Commit: 0db996e14c337bb05198cb95cac9c05927b536da URL: http://source.winehq.org/git/wine.git/?a=commit;h=0db996e14c337bb05198cb95ca... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Fri Oct 25 12:14:30 2013 +0900 kernel32/tests: Increase the timeout for completion of write to a COM-port. It's not enough for some hardware configurations. --- dlls/kernel32/tests/comm.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c index 844c86d..33b10ac 100644 --- a/dlls/kernel32/tests/comm.c +++ b/dlls/kernel32/tests/comm.c @@ -855,8 +855,7 @@ static void test_waittxempty(void) SetLastError(0xdeadbeef); res = WaitCommEvent(hcom, &evtmask, &ovl_wait); ok(!res && GetLastError() == ERROR_IO_PENDING, "WaitCommEvent error %d\n", GetLastError()); - res = WaitForSingleObject(ovl_wait.hEvent, TIMEOUT); -todo_wine + res = WaitForSingleObject(ovl_wait.hEvent, 1500); ok(res == WAIT_OBJECT_0, "WaitCommEvent failed with a timeout\n"); if (res == WAIT_OBJECT_0) { @@ -878,16 +877,13 @@ todo_wine res = FALSE; } after = GetTickCount(); -todo_wine ok(res, "WaitCommEvent error %d\n", GetLastError()); -todo_wine ok(evtmask & EV_TXEMPTY, "WaitCommEvent: expected EV_TXEMPTY, got %#x\n", evtmask); CloseHandle(ovl_wait.hEvent); timediff = after - before; trace("WaitCommEvent for EV_TXEMPTY took %d ms (timeout %d)\n", timediff, TIMEOUT); -todo_wine - ok(timediff < 900, "WaitCommEvent used %d ms for waiting\n", timediff); + ok(timediff < 1200, "WaitCommEvent used %d ms for waiting\n", timediff); res = WaitForSingleObject(ovl_write.hEvent, 0); ok(res == WAIT_OBJECT_0, "WriteFile failed with a timeout\n");
participants (1)
-
Alexandre Julliard