mmdevapi/tests: increase timeout in capture tests

Austin English austinenglish at gmail.com
Tue Nov 23 00:23:44 CST 2010


On Mon, Nov 22, 2010 at 10:23 PM, Austin English
<austinenglish at gmail.com> wrote:
> This test fails about 1/2 of the time on my machine. After increasing
> the timeout to 2 seconds, I was able to run it a couple hundred times
> in a row without failure (ran in a loop for about 15 minutes).

Attaching the patch helps..

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/mmdevapi/tests/capture.c b/dlls/mmdevapi/tests/capture.c
index a1d36e6..ed497df 100644
--- a/dlls/mmdevapi/tests/capture.c
+++ b/dlls/mmdevapi/tests/capture.c
@@ -87,7 +87,7 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
     hr = IAudioCaptureClient_GetNextPacketSize(acc, NULL);
     ok(hr == E_POINTER, "IAudioCaptureClient_GetNextPacketSize(NULL) returns %08x\n", hr);
 
-    ok(WaitForSingleObject(handle, 1000) == WAIT_OBJECT_0, "Waiting on event handle failed!\n");
+    ok(WaitForSingleObject(handle, 2000) == WAIT_OBJECT_0, "Waiting on event handle failed!\n");
 
     /* frames can be 0 if no data is available yet.. */
     hr = IAudioCaptureClient_GetNextPacketSize(acc, &frames);


More information about the wine-patches mailing list