kernel32/tests: Make ClearCommError very first test since it depends on device queue being empty.

This commit is contained in:
Dmitry Timoshkov 2013-08-15 16:38:15 +09:00 committed by Alexandre Julliard
parent ab7dac6886
commit b288f0a879
1 changed files with 1 additions and 7 deletions

View File

@ -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);