summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-08 00:35:08 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-01-08 00:35:08 +0000
commitf6577d38907e7b79884da1a9c19ea9db585e73d9 (patch)
tree82043121bad7b5e08ee4e46aacfd186c4446c0fb /tests
parentd663748cd242715d4010f3bbf69c453e1c1dd770 (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
Diffstat (limited to 'tests')
-rw-r--r--tests/check/Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index a7eaba9d..23e9d879 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -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