From f84f4cab70b330daf3cfb0a1f2367b14d17d99a3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 5 Dec 2007 20:10:24 -0800 Subject: [PATCH] quartz: Move current tests into their own test case. --- dlls/quartz/tests/filtergraph.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/dlls/quartz/tests/filtergraph.c b/dlls/quartz/tests/filtergraph.c index fe26bafc689..57400d2452f 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(); +} -- 2.11.4.GIT