Commit 66dc9357 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qedit/tests: Abort on missing qedit.dll.

parent cf274c6f
......@@ -647,6 +647,9 @@ static void test_COM_sg_enumpins(void)
START_TEST(mediadet)
{
IMediaDet *detector;
HRESULT hr;
if (!init_tests())
{
skip("Couldn't initialize tests!\n");
......@@ -655,6 +658,15 @@ START_TEST(mediadet)
CoInitialize(NULL);
if (FAILED(hr = CoCreateInstance(&CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER,
&IID_IMediaDet, (void **)&detector)))
{
/* qedit.dll does not exist on 2003. */
win_skip("Failed to create media detector object, hr %#x.\n", hr);
return;
}
IMediaDet_Release(detector);
test_aggregation();
test_mediadet();
test_samplegrabber();
......
......@@ -451,8 +451,20 @@ static void test_aggregation(void)
START_TEST(samplegrabber)
{
IBaseFilter *filter;
HRESULT hr;
CoInitialize(NULL);
if (FAILED(hr = CoCreateInstance(&CLSID_SampleGrabber, NULL, CLSCTX_INPROC_SERVER,
&IID_IBaseFilter, (void **)&filter)))
{
/* qedit.dll does not exist on 2003. */
win_skip("Failed to create sample grabber filter, hr %#x.\n", hr);
return;
}
IBaseFilter_Release(filter);
test_interfaces();
test_enum_pins();
test_find_pin();
......
......@@ -246,8 +246,20 @@ static void test_timelineobj_interfaces(void)
START_TEST(timeline)
{
IAMTimeline *timeline;
HRESULT hr;
CoInitialize(NULL);
if (FAILED(hr = CoCreateInstance(&CLSID_AMTimeline, NULL, CLSCTX_INPROC_SERVER,
&IID_IAMTimeline, (void **)&timeline)))
{
/* qedit.dll does not exist on 2003. */
win_skip("Failed to create timeline object, hr %#x.\n", hr);
return;
}
IAMTimeline_Release(timeline);
test_aggregation();
test_timeline();
test_timelineobj_interfaces();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment