harness: make sure g_assert() statements are always active

We have code with side effects inside g_assert()s, so make
sure those are always enabled here (they might otherwise
get disabled for release builds).
This commit is contained in:
Tim-Philipp Müller 2014-04-12 19:48:15 +01:00
parent ac79c7f05a
commit b5cc88594e
2 changed files with 6 additions and 0 deletions

View file

@ -13,6 +13,7 @@ libgstcheck_@GST_API_VERSION@_la_SOURCES = \
gsttestclock.c
libgstcheck_@GST_API_VERSION@_la_CFLAGS = $(GST_OBJ_CFLAGS) \
-UG_DISABLE_ASSERT \
-I$(top_builddir)/libs \
-I$(top_builddir)/libs/gst/check \
-I$(top_builddir)/libs/gst/check/libcheck

View file

@ -124,6 +124,11 @@
#include "config.h"
#endif
/* we have code with side effects in asserts, so make sure they are active */
#ifdef G_DISABLE_ASSERT
#error "GstHarness must be compiled with G_DISABLE_ASSERT undefined"
#endif
#include "gstharness.h"
#include <stdio.h>