summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-08 00:08:11 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-08 00:08:11 +0000
commita0449837456f12359267de4e653d9764e521db9e (patch)
tree1b0d6e77fd5fc2438cd033eb3438864fb3498451
parent3145eac5771e62084000d9585b6ccddf258b2186 (diff)
tests: never disable g_assert() and cast checks for the unit tests
The unit tests are riddled with g_assert() and friends, make sure we don't disable assert and cast checks for the unit tests even if this has been specified for the rest of the code base, e.g. via --disable-glib-asserts.
-rw-r--r--tests/check/Makefile.am9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index fc2e25f96..31d41b4aa 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -181,13 +181,14 @@ noinst_HEADERS = elements/mxfdemux.h
TESTS = $(check_PROGRAMS)
AM_CFLAGS = $(GST_CHECK_CFLAGS) $(GST_OPTION_CFLAGS) \
- -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\""
+ -DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
+ -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
LDADD = $(GST_CHECK_LIBS)
elements_camerabin_CFLAGS = \
-I$(top_builddir)/gst-libs \
$(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_PLUGINS_BAD_CFLAGS) $(GST_CHECK_CFLAGS) \
+ $(GST_PLUGINS_BAD_CFLAGS) $(GST_CHECK_CFLAGS) $(AM_CFLAGS) \
-DGST_USE_UNSTABLE_API
elements_camerabin_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
@@ -200,7 +201,7 @@ if BUILD_EXPERIMENTAL
elements_camerabin2_CFLAGS = \
-I$(top_builddir)/gst-libs \
$(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_PLUGINS_BAD_CFLAGS) $(GST_CHECK_CFLAGS) \
+ $(GST_PLUGINS_BAD_CFLAGS) $(GST_CHECK_CFLAGS) $(AM_CFLAGS) \
-DGST_USE_UNSTABLE_API
elements_camerabin2_LDADD = \
$(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_MAJORMINOR@.la \
@@ -212,7 +213,7 @@ elements_camerabin2_SOURCES = elements/camerabin2.c
elements_imagecapturebin_CFLAGS = \
-I$(top_builddir)/gst-libs \
$(GST_CFLAGS) $(GST_BASE_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_CHECK_CFLAGS) \
+ $(GST_CHECK_CFLAGS) $(AM_CFLAGS) \
-DGST_USE_UNSTABLE_API
elements_imagecapturebin_LDADD = \
$(GST_LIBS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \