tests: never disable g_assert() and cast checks for the unit tests

The unit tests are riddled with g_assert() and friends, sometimes
containing functional code like set_state() calls in them even
(looking at you, pipeline/capsfilter-renegotiation). 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.
This commit is contained in:
Tim-Philipp Müller 2011-01-07 00:43:07 +00:00
parent ca8ceb4baf
commit a266fe8d30

View file

@ -151,7 +151,8 @@ VALGRIND_TO_FIX = \
noinst_PROGRAMS = $(check_libvisual)
AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS) \
-DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\""
-DGST_TEST_FILES_PATH="\"$(TEST_FILES_DIRECTORY)\"" \
-UG_DISABLE_ASSERT -UG_DISABLE_CAST_CHECKS
LDADD = $(GST_LIBS) $(GST_CHECK_LIBS)
# valgrind testing