From b288f0a8790dbcb79332de4e2af9f6674c5d3484 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 15 Aug 2013 16:38:15 +0900 Subject: [PATCH] kernel32/tests: Make ClearCommError very first test since it depends on device queue being empty. --- dlls/kernel32/tests/comm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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);