From c3158814b54436d9ceb55b6c84d5b4c0aadf102d Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 4 May 2004 06:23:48 +0000 Subject: [PATCH] testsuite/caps/deserialize.c: Fix problems noticed by the build bots. Original commit message from CVS: * testsuite/caps/deserialize.c: (main): Fix problems noticed by the build bots. * testsuite/caps/renegotiate.c: (main): Same. --- ChangeLog | 6 ++++++ tests/old/testsuite/caps/deserialize.c | 3 ++- tests/old/testsuite/caps/renegotiate.c | 6 ++++++ testsuite/caps/deserialize.c | 3 ++- testsuite/caps/renegotiate.c | 6 ++++++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dafee185f6..b9828168c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-03 David Schleef + + * testsuite/caps/deserialize.c: (main): Fix problems noticed + by the build bots. + * testsuite/caps/renegotiate.c: (main): Same. + 2004-05-03 David Schleef * testsuite/caps/renegotiate.c: (my_fixate), (main): Another test. diff --git a/tests/old/testsuite/caps/deserialize.c b/tests/old/testsuite/caps/deserialize.c index 52d3fff6ac..d17dd494f2 100644 --- a/tests/old/testsuite/caps/deserialize.c +++ b/tests/old/testsuite/caps/deserialize.c @@ -29,13 +29,14 @@ main (int argc, char *argv[]) const char *srcdir = g_getenv ("srcdir"); if (srcdir) { - filename = g_build_filename (srcdir, "caps_strings"); + filename = g_build_filename (srcdir, "caps_strings", NULL); } else { filename = g_strdup ("caps_strings"); } } if (!g_file_get_contents (filename, &data, &length, NULL)) { + g_print ("could not open file %s\n", filename); abort (); } diff --git a/tests/old/testsuite/caps/renegotiate.c b/tests/old/testsuite/caps/renegotiate.c index 797b7d66ce..661e5eae2e 100644 --- a/tests/old/testsuite/caps/renegotiate.c +++ b/tests/old/testsuite/caps/renegotiate.c @@ -67,6 +67,12 @@ main (int argc, char *argv[]) "audio/x-raw-int, channels=2, rate=48000;" "audio/x-raw-int, channels=1, rate=44100 !" "fakesink", NULL); + if (pipeline == NULL) { + g_print + ("oops, couldn't build pipeline. You probably don't have audioconvert or sinesrc\n"); + exit (0); + } + list = gst_bin_get_list (GST_BIN (pipeline)); while (list) { GstElement *element = GST_ELEMENT (list->data); diff --git a/testsuite/caps/deserialize.c b/testsuite/caps/deserialize.c index 52d3fff6ac..d17dd494f2 100644 --- a/testsuite/caps/deserialize.c +++ b/testsuite/caps/deserialize.c @@ -29,13 +29,14 @@ main (int argc, char *argv[]) const char *srcdir = g_getenv ("srcdir"); if (srcdir) { - filename = g_build_filename (srcdir, "caps_strings"); + filename = g_build_filename (srcdir, "caps_strings", NULL); } else { filename = g_strdup ("caps_strings"); } } if (!g_file_get_contents (filename, &data, &length, NULL)) { + g_print ("could not open file %s\n", filename); abort (); } diff --git a/testsuite/caps/renegotiate.c b/testsuite/caps/renegotiate.c index 797b7d66ce..661e5eae2e 100644 --- a/testsuite/caps/renegotiate.c +++ b/testsuite/caps/renegotiate.c @@ -67,6 +67,12 @@ main (int argc, char *argv[]) "audio/x-raw-int, channels=2, rate=48000;" "audio/x-raw-int, channels=1, rate=44100 !" "fakesink", NULL); + if (pipeline == NULL) { + g_print + ("oops, couldn't build pipeline. You probably don't have audioconvert or sinesrc\n"); + exit (0); + } + list = gst_bin_get_list (GST_BIN (pipeline)); while (list) { GstElement *element = GST_ELEMENT (list->data);