[gnome-builder/wip/libide] libide: always enable assertions in tests



commit bca304af38a43f15d5b30dc7085ad4366d0d694e
Author: Christian Hergert <christian hergert me>
Date:   Mon Mar 2 14:48:06 2015 -0800

    libide: always enable assertions in tests

 tests/tests.mk |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/tests/tests.mk b/tests/tests.mk
index a23dce7..ebfa5d2 100644
--- a/tests/tests.mk
+++ b/tests/tests.mk
@@ -1,14 +1,20 @@
+test_shared_cflags = \
+       -UG_DISABLE_ASSERT \
+       -UG_DISABLE_CAST_CHECKS \
+       $(NULL)
+
+
 noinst_PROGRAMS += test-c-parse-helper
 TESTS += test-c-parse-helper
 test_c_parse_helper_SOURCES = tests/test-c-parse-helper.c
-test_c_parse_helper_CFLAGS = $(libgnome_builder_la_CFLAGS)
+test_c_parse_helper_CFLAGS = $(test_shared_cflags) $(libgnome_builder_la_CFLAGS)
 test_c_parse_helper_LDADD = libgnome-builder.la
 
 
 noinst_PROGRAMS += test-navigation-list
 TESTS += test-navigation-list
 test_navigation_list_SOURCES = tests/test-navigation-list.c
-test_navigation_list_CFLAGS = $(libgnome_builder_la_CFLAGS)
+test_navigation_list_CFLAGS = $(test_shared_cflags) $(libgnome_builder_la_CFLAGS)
 test_navigation_list_LDADD = libgnome-builder.la
 
 
@@ -16,6 +22,7 @@ noinst_PROGRAMS += test-ide-context
 TESTS += test-ide-context
 test_ide_context_SOURCES = tests/test-ide-context.c
 test_ide_context_CFLAGS = \
+       $(test_shared_cflags) \
        $(libide_1_0_la_CFLAGS) \
        -DTEST_DATA_DIR="\"$(top_srcdir)/tests/data\""
 test_ide_context_LDADD = libide-1.0.la $(LIBIDE_LIBS)
@@ -25,6 +32,7 @@ noinst_PROGRAMS += test-ide-back-forward-list
 TESTS += test-ide-back-forward-list
 test_ide_back_forward_list_SOURCES = tests/test-ide-back-forward-list.c
 test_ide_back_forward_list_CFLAGS = \
+       $(test_shared_cflags) \
        $(libide_1_0_la_CFLAGS) \
        -DTEST_DATA_DIR="\"$(top_srcdir)/tests/data\""
 test_ide_back_forward_list_LDADD = libide-1.0.la $(LIBIDE_LIBS)
@@ -34,6 +42,7 @@ noinst_PROGRAMS += test-ide-buffer-manager
 TESTS += test-ide-buffer-manager
 test_ide_buffer_manager_SOURCES = tests/test-ide-buffer-manager.c
 test_ide_buffer_manager_CFLAGS = \
+       $(test_shared_cflags) \
        $(libide_1_0_la_CFLAGS) \
        -DTEST_DATA_DIR="\"$(top_srcdir)/tests/data\""
 test_ide_buffer_manager_LDADD = libide-1.0.la $(LIBIDE_LIBS)
@@ -42,6 +51,7 @@ noinst_PROGRAMS += test-ide-buffer
 TESTS += test-ide-buffer
 test_ide_buffer_SOURCES = tests/test-ide-buffer.c
 test_ide_buffer_CFLAGS = \
+       $(test_shared_cflags) \
        $(libide_1_0_la_CFLAGS) \
        -DTEST_DATA_DIR="\"$(top_srcdir)/tests/data\""
 test_ide_buffer_LDADD = libide-1.0.la $(LIBIDE_LIBS)
@@ -50,6 +60,7 @@ test_ide_buffer_LDADD = libide-1.0.la $(LIBIDE_LIBS)
 noinst_PROGRAMS += test-ide-source-view
 test_ide_source_view_SOURCES = tests/test-ide-source-view.c
 test_ide_source_view_CFLAGS = \
+       $(test_shared_cflags) \
        $(libide_1_0_la_CFLAGS) \
        -DTEST_DATA_DIR="\"$(top_srcdir)/tests/data\""
 test_ide_source_view_LDADD = libide-1.0.la $(LIBIDE_LIBS)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]