tests/check/Makefile.am: Fix up some CFLAGS sets.
authorJan Schmidt <thaytan@mad.scientist.com>
Mon, 21 Jan 2008 19:41:45 +0000 (19:41 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 21 Jan 2008 19:41:45 +0000 (19:41 +0000)
Original commit message from CVS:
* tests/check/Makefile.am:
Fix up some CFLAGS sets.
Don't include gconfvideosrc in the states test.
* tests/check/elements/autodetect.c: (GST_START_TEST):
Add some error strings to fail_unless arguments to fix some weird
compiler errors on Solaris.

ChangeLog
tests/check/Makefile.am
tests/check/elements/autodetect.c

index c2d0904..ff0c16a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2008-01-21  Jan Schmidt  <Jan.Schmidt@sun.com>
 
+       * tests/check/Makefile.am:
+       Fix up some CFLAGS sets.
+       Don't include gconfvideosrc in the states test.
+
+       * tests/check/elements/autodetect.c: (GST_START_TEST):
+       Add some error strings to fail_unless arguments to fix some weird
+       compiler errors on Solaris.
+
+2008-01-21  Jan Schmidt  <Jan.Schmidt@sun.com>
+
        * configure.ac:
        Detect video4linux headers on Solaris too.
        * sys/v4l2/gstv4l2colorbalance.h:
index 8ee7b99..842589f 100644 (file)
@@ -11,7 +11,7 @@ TESTS_ENVIRONMENT = \
        GST_PLUGIN_SYSTEM_PATH=                                 \
        GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/ext:$(top_builddir)/sys:$(GSTPB_PLUGINS_DIR):$(GST_PLUGINS_DIR)                     \
        GST_TEST_FILES_PATH=$(TEST_FILES_DIRECTORY) \
-       STATE_IGNORE_ELEMENTS="aasink autovideosink cacasink cairotextoverlay"
+       STATE_IGNORE_ELEMENTS="aasink autovideosink cacasink cairotextoverlay gconfvideosrc"
 
 # ths core dumps of some machines have PIDs appended
 CLEANFILES = core.* test-registry.*
@@ -100,18 +100,18 @@ elements_audiopanorama_CFLAGS = \
        $(GST_BASE_CFLAGS) $(GST_CONTROLLER_CFLAGS) \
        $(CFLAGS) $(AM_CFLAGS)
 
-elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
-elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
+elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
+elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
 
-elements_alphacolor_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
+elements_alphacolor_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
 
 elements_sunaudio_CFLAGS = \
-       $(GST_PLUGINS_BASE_CFLAGS) \
+       $(GST_PLUGINS_BASE_CFLAGS) $(CFLAGS) \
        $(AM_CFLAGS)
 elements_sunaudio_LDADD = \
        $(GST_PLUGINS_BASE_LIBS) -lgstinterfaces-@GST_MAJORMINOR@ \
        $(LDADD)
 
 elements_videocrop_LDADD = $(LDADD) $(GST_BASE_LIBS)
-elements_videocrop_CFLAGS = $(CFLAGS) $(AM_CFLAGS) $(GST_BASE_CFLAGS)
+elements_videocrop_CFLAGS = $(GST_BASE_CFLAGS) $(CFLAGS) $(AM_CFLAGS)
 
index a7b6190..0eb798b 100644 (file)
@@ -56,8 +56,9 @@ GST_START_TEST (test_autovideosink_ghostpad_error_case)
 
   gst_bin_add_many (GST_BIN (pipeline), src, filter, sink, NULL);
 
-  fail_unless (gst_element_link (src, filter));
-  fail_unless (gst_element_link (filter, sink));
+  fail_unless (gst_element_link (src, filter), "Failed to link src to filter");
+  fail_unless (gst_element_link (filter, sink),
+      "Failed to link filter to sink");
 
   /* this should fail, there's no such format */
   state_ret = gst_element_set_state (pipeline, GST_STATE_PAUSED);
@@ -68,7 +69,8 @@ GST_START_TEST (test_autovideosink_ghostpad_error_case)
    * deadlock or block anywhere when autovideosink resets the ghostpad
    * targets etc. */
   state_ret = gst_element_set_state (pipeline, GST_STATE_NULL);
-  fail_unless (state_ret == GST_STATE_CHANGE_SUCCESS);
+  fail_unless (state_ret == GST_STATE_CHANGE_SUCCESS,
+      "State change on pipeline failed");
 
   /* clean up */
   gst_object_unref (pipeline);