From 997ea7e09d11a6fe8eac4b4974c246dd20d4fa3f Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 25 May 2021 08:23:24 +0200 Subject: [PATCH] Increased thread test run time to fix failing mac tests --- winpr/libwinpr/synch/test/TestSynchMultipleThreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winpr/libwinpr/synch/test/TestSynchMultipleThreads.c b/winpr/libwinpr/synch/test/TestSynchMultipleThreads.c index b0bf8f212..78ef91080 100644 --- a/winpr/libwinpr/synch/test/TestSynchMultipleThreads.c +++ b/winpr/libwinpr/synch/test/TestSynchMultipleThreads.c @@ -9,7 +9,7 @@ static DWORD WINAPI test_thread(LPVOID arg) { - long timeout = 100 + (rand() % 1000); + long timeout = 300 + (rand() % 1000); WINPR_UNUSED(arg); Sleep(timeout); ExitThread(0); @@ -177,7 +177,7 @@ static BOOL TestWaitOneTimeoutMultijoin(void) ret = WaitForMultipleObjects(THREADS, threads, FALSE, 0); if (ret != WAIT_TIMEOUT) { - fprintf(stderr, "%s: WaitForMultipleObjects timeout 50 failed, ret=%d\n", __FUNCTION__, + fprintf(stderr, "%s: WaitForMultipleObjects timeout 0 failed, ret=%d\n", __FUNCTION__, ret); goto fail; }