mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
ac79c7f05a
commit
b5cc88594e
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue