Nikolay Sivov : mf/tests: Use separate session instance for events tests.

Alexandre Julliard julliard at winehq.org
Tue Oct 8 16:05:57 CDT 2019


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Oct  8 15:58:54 2019 +0300

mf/tests: Use separate session instance for events tests.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mf/tests/mf.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index 2a5efc99e8..038bfeacd1 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -1041,8 +1041,6 @@ todo_wine
 
     IMFGetService_Release(gs);
 
-    test_session_events(session);
-
     IMFMediaSession_Release(session);
 
     hr = MFCreateMediaSession(NULL, &session);
@@ -1077,6 +1075,14 @@ todo_wine
 
     IMFAttributes_Release(attributes);
 
+    /* Basic events behavior. */
+    hr = MFCreateMediaSession(NULL, &session);
+    ok(hr == S_OK, "Failed to create media session, hr %#x.\n", hr);
+
+    test_session_events(session);
+
+    IMFMediaSession_Release(session);
+
     hr = MFShutdown();
     ok(hr == S_OK, "Shutdown failure, hr %#x.\n", hr);
 }




More information about the wine-cvs mailing list