Zebediah Figura : quartz/tests: Avoid Sleep().

Alexandre Julliard julliard at winehq.org
Mon Nov 6 14:37:34 CST 2017


Module: wine
Branch: master
Commit: 7074b411df28bd872e65ee756ec0e0e6f26584ed
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7074b411df28bd872e65ee756ec0e0e6f26584ed

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Nov  4 00:20:15 2017 -0500

quartz/tests: Avoid Sleep().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/tests/filtergraph.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c
index 13e6988..f9c95ae 100644
--- a/dlls/quartz/tests/filtergraph.c
+++ b/dlls/quartz/tests/filtergraph.c
@@ -330,8 +330,7 @@ static void rungraph(void)
     hr = IMediaEvent_GetEventHandle(pme, (OAEVENT*)&hEvent);
     ok(hr==S_OK, "Cannot get event handle returned: %x\n", hr);
 
-    /* WaitForSingleObject(hEvent, INFINITE); */
-    Sleep(20000);
+    ok(WaitForSingleObject(hEvent, 2000) == WAIT_OBJECT_0, "Wait failed\n");
 
     hr = IMediaEvent_Release(pme);
     ok(hr==2, "Releasing mediaevent returned: %x\n", hr);




More information about the wine-cvs mailing list