kernel32/tests: Make ClearCommError very first test since it depends on device queue being empty.
This commit is contained in:
parent
ab7dac6886
commit
b288f0a879
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue