qedit/tests: Abort on missing qedit.dll.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cf274c6f0c
commit
66dc93570c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue