mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
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:
parent
ca8ceb4baf
commit
a266fe8d30
1 changed files with 2 additions and 1 deletions
|
@ -151,7 +151,8 @@ VALGRIND_TO_FIX = \
|
||||||
noinst_PROGRAMS = $(check_libvisual)
|
noinst_PROGRAMS = $(check_libvisual)
|
||||||
|
|
||||||
AM_CFLAGS = $(GST_CFLAGS) $(GST_CHECK_CFLAGS) \
|
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)
|
LDADD = $(GST_LIBS) $(GST_CHECK_LIBS)
|
||||||
|
|
||||||
# valgrind testing
|
# valgrind testing
|
||||||
|
|
Loading…
Reference in a new issue