Gijs Vermeulen : qcap/tests: Avoid test failures in test_seeking().

Alexandre Julliard julliard at winehq.org
Mon Jul 20 15:30:09 CDT 2020


Module: wine
Branch: master
Commit: 5df591fe017df41f1774d30505869fc766585652
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5df591fe017df41f1774d30505869fc766585652

Author: Gijs Vermeulen <gijsvrm at gmail.com>
Date:   Mon Jul 20 18:19:46 2020 +0200

qcap/tests: Avoid test failures in test_seeking().

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

---

 dlls/qcap/tests/avimux.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/qcap/tests/avimux.c b/dlls/qcap/tests/avimux.c
index 572314f8ab..d1a67a01a1 100644
--- a/dlls/qcap/tests/avimux.c
+++ b/dlls/qcap/tests/avimux.c
@@ -784,11 +784,13 @@ static void test_seeking(void)
 
     hr = IMediaSeeking_GetDuration(seeking, &time);
     todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
-    todo_wine ok(!time, "Got duration %s.\n", wine_dbgstr_longlong(time));
+    if (hr == S_OK)
+        ok(!time, "Got duration %s.\n", wine_dbgstr_longlong(time));
 
     hr = IMediaSeeking_GetCurrentPosition(seeking, &time);
     todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
-    todo_wine ok(!time, "Got duration %s.\n", wine_dbgstr_longlong(time));
+    if (hr == S_OK)
+        ok(!time, "Got duration %s.\n", wine_dbgstr_longlong(time));
 
     hr = IMediaSeeking_GetStopPosition(seeking, &time);
     ok(hr == E_NOTIMPL, "Got hr %#x.\n", hr);




More information about the wine-cvs mailing list