Michael Stefaniuc : mmdevapi/tests: Make use of todo_wine_if().

Alexandre Julliard julliard at winehq.org
Fri Aug 5 16:20:07 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu Aug  4 23:43:27 2016 +0200

mmdevapi/tests: Make use of todo_wine_if().

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mmdevapi/tests/capture.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/dlls/mmdevapi/tests/capture.c b/dlls/mmdevapi/tests/capture.c
index e68c38d..749272a 100644
--- a/dlls/mmdevapi/tests/capture.c
+++ b/dlls/mmdevapi/tests/capture.c
@@ -244,10 +244,8 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
         ok(hr == S_OK, "Valid IAudioCaptureClient_GetBuffer returns %08x\n", hr);
         ok(frames2 == frames, "GetBuffer after ReleaseBuffer(0) %u/%u\n", frames2, frames);
         ok(pos2 == pos, "Position after ReleaseBuffer(0) %u/%u\n", (UINT)pos2, (UINT)pos);
-        if(qpc2 != qpc)
+        todo_wine_if(qpc2 != qpc)
             /* FIXME: Some drivers fail */
-            todo_wine ok(qpc2 == qpc, "HPC after ReleaseBuffer(0) %u vs. %u\n", (UINT)qpc2, (UINT)qpc);
-        else
             ok(qpc2 == qpc, "HPC after ReleaseBuffer(0) %u vs. %u\n", (UINT)qpc2, (UINT)qpc);
     }
 




More information about the wine-cvs mailing list