summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-10-15 10:28:39 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-10-15 10:28:39 +0100
commit4b84d7552f29888a9deadc329cc7b88d7226d13f (patch)
treebc848aaa07f328c90ccee085948bcc6f2758fedf /tests
parentecca471d029a39368ee169ae535383035e5b9842 (diff)
check: Don't fail the basetime test when no audiosrc is available
On OS/X the DEFAULT_AUDIOSRC is not going to be available, because it isn't in gst-plugins-base. Just defer the test, instead of failing it.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/pipelines/basetime.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/check/pipelines/basetime.c b/tests/check/pipelines/basetime.c
index 6fc1a60ee..00072ef01 100644
--- a/tests/check/pipelines/basetime.c
+++ b/tests/check/pipelines/basetime.c
@@ -67,9 +67,17 @@ GST_START_TEST (test_basetime_calculation)
fail_if (p1 == NULL);
/* Create a sub-bin that is activated only in "certain situations" */
- bin = gst_bin_new ("audiobin");
asrc = gst_element_factory_make (DEFAULT_AUDIOSRC, NULL);
+ if (asrc == NULL) {
+ GST_WARNING ("Cannot run test. test audio source %s not available",
+ DEFAULT_AUDIOSRC);
+ gst_element_set_state (p1, GST_STATE_NULL);
+ gst_object_unref (p1);
+ return;
+ }
asink = gst_element_factory_make ("fakesink", NULL);
+
+ bin = gst_bin_new ("audiobin");
gst_bin_add_many (GST_BIN (bin), asrc, asink, NULL);
gst_element_link (asrc, asink);