From be9baf1a0ba04d338aaa5e64eaddbc3eb32f0b59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 9 Apr 2012 12:55:34 +0100 Subject: [PATCH] tests: disable simple smokeenc/dec launch lines test Disable test for smoke elements, which aren't ported yet (and maybe shouldn't be ported). --- tests/check/pipelines/simple-launch-lines.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/check/pipelines/simple-launch-lines.c b/tests/check/pipelines/simple-launch-lines.c index c1c12ed..326d357 100644 --- a/tests/check/pipelines/simple-launch-lines.c +++ b/tests/check/pipelines/simple-launch-lines.c @@ -241,10 +241,16 @@ GST_START_TEST (test_video_encoders_decoders) GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); - s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "smokeenc", "smokedec"); - run_pipeline (setup_pipeline (s), s, - GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), - GST_MESSAGE_UNKNOWN, target_state); + + if (gst_registry_check_feature_version (gst_registry_get (), "smokeenc", + GST_VERSION_MAJOR, GST_VERSION_MINOR, 0) && + gst_registry_check_feature_version (gst_registry_get (), "smokedec", + GST_VERSION_MAJOR, GST_VERSION_MINOR, 0)) { + s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "smokeenc", "smokedec"); + run_pipeline (setup_pipeline (s), s, + GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), + GST_MESSAGE_UNKNOWN, target_state); + } } GST_END_TEST -- 2.7.4