diff --git a/dlls/kernel32/tests/comm.c b/dlls/kernel32/tests/comm.c index e9a86902a9a..38a8bbc1829 100644 --- a/dlls/kernel32/tests/comm.c +++ b/dlls/kernel32/tests/comm.c @@ -1671,6 +1671,7 @@ START_TEST(comm) hcom = test_OpenComm(FALSE); if (hcom != INVALID_HANDLE_VALUE) { + test_ClearCommErrors(hcom); /* keep it the very first test */ test_GetModemStatus(hcom); test_ReadTimeOut(hcom); test_waittxempty(hcom); @@ -1678,13 +1679,6 @@ START_TEST(comm) } hcom = test_OpenComm(FALSE); if (hcom != INVALID_HANDLE_VALUE) - { - Sleep(200); /* Give the laster character of test_waittxempty to drop into the receiver */ - test_ClearCommErrors(hcom); - CloseHandle(hcom); - } - hcom = test_OpenComm(FALSE); - if (hcom != INVALID_HANDLE_VALUE) { test_non_pending_errors(hcom); CloseHandle(hcom);