Lei Zhang : quartz: Move current tests into their own test case.

Alexandre Julliard julliard at winehq.org
Fri Dec 7 11:02:05 CST 2007


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

Author: Lei Zhang <thestig at google.com>
Date:   Wed Dec  5 20:10:24 2007 -0800

quartz: Move current tests into their own test case.

---

 dlls/quartz/tests/filtergraph.c |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c
index fe26baf..57400d2 100644
--- a/dlls/quartz/tests/filtergraph.c
+++ b/dlls/quartz/tests/filtergraph.c
@@ -85,20 +85,25 @@ static void releasefiltergraph(void)
     ok(hr==0, "Releasing filtergraph returned: %x\n", hr);
 }
 
-START_TEST(filtergraph)
+static void test_render_run(void)
 {
     HANDLE h;
-	
-    CoInitialize(NULL);
+
     if (!createfiltergraph())
         return;
 
     h = CreateFileW(file, 0, 0, NULL, OPEN_EXISTING, 0, NULL);
     if (h != INVALID_HANDLE_VALUE) {
-	CloseHandle(h);
-	renderfile();
-	rungraph();
+        CloseHandle(h);
+        renderfile();
+        rungraph();
     }
 
     releasefiltergraph();
 }
+
+START_TEST(filtergraph)
+{
+    CoInitialize(NULL);
+    test_render_run();
+}




More information about the wine-cvs mailing list