tests: never disable g_assert() and cast checks for the unit tests
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 8 Jan 2011 00:35:08 +0000 (00:35 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 8 Jan 2011 00:35:08 +0000 (00:35 +0000)
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

tests/check/Makefile.am

index a7eaba9..23e9d87 100644 (file)
@@ -56,7 +56,8 @@ noinst_PROGRAMS =
 
 noinst_HEADERS = elements/xingmux_testdata.h
 
-AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
+AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS) \
+               -UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
 LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
 
 # valgrind testing
@@ -64,7 +65,7 @@ VALGRIND_TESTS_DISABLE = elements/x264enc
 
 SUPPRESSIONS = $(top_srcdir)/common/gst.supp $(srcdir)/gst-plugins-ugly.supp
 
-elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
-elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS)
+elements_cmmldec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
+elements_cmmlenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(AM_CFLAGS)
 
 EXTRA_DIST = gst-plugins-ugly.supp