Zebediah Figura : ole32/tests: Adjust timing in test_CoWaitForMultipleHandles().
Alexandre Julliard
julliard at winehq.org
Sun Oct 27 15:06:17 CDT 2019
Module: wine
Branch: master
Commit: 03224726a86f409f3617840060e7fd17ed1e8894
URL: https://source.winehq.org/git/wine.git/?a=commit;h=03224726a86f409f3617840060e7fd17ed1e8894
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat Oct 26 22:47:51 2019 -0500
ole32/tests: Adjust timing in test_CoWaitForMultipleHandles().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ole32/tests/compobj.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/ole32/tests/compobj.c b/dlls/ole32/tests/compobj.c
index 49faabdece..ea5ea35a11 100644
--- a/dlls/ole32/tests/compobj.c
+++ b/dlls/ole32/tests/compobj.c
@@ -2450,7 +2450,6 @@ static DWORD CALLBACK release_semaphore_thread( LPVOID arg )
static DWORD CALLBACK send_message_thread(LPVOID arg)
{
HWND hWnd = arg;
- Sleep(50);
SendMessageA(hWnd, WM_DDE_FIRST, 0, 0);
return 0;
}
@@ -2467,7 +2466,6 @@ static DWORD CALLBACK send_and_post_user_message_thread(void *arg)
static DWORD CALLBACK post_message_thread(LPVOID arg)
{
HWND hWnd = arg;
- Sleep(50);
PostMessageA(hWnd, WM_DDE_FIRST, 0, 0);
return 0;
}
@@ -2931,7 +2929,7 @@ static void test_CoWaitForMultipleHandles(void)
PostMessageA(hWnd, WM_QUIT, 42, 0);
thread = CreateThread(NULL, 0, send_message_thread, hWnd, 0, &tid);
ok(thread != NULL, "CreateThread failed, error %u\n", GetLastError());
- hr = CoWaitForMultipleHandles(0, 100, 2, handles, &index);
+ hr = CoWaitForMultipleHandles(0, 500, 2, handles, &index);
ok(hr == RPC_S_CALLPENDING, "expected RPC_S_CALLPENDING, got 0x%08x\n", hr);
ok(index == 0 || broken(index == 0xdeadbeef) /* Win 8 */, "expected index 0, got %u\n", index);
success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE);
More information about the wine-cvs
mailing list