[glib/wip/gcleanup] WIP: More memcheck make target tweaks



commit 391571e25388394b1c73bbcf4b4dbb63bd277028
Author: Stef Walter <stefw gnome org>
Date:   Fri Nov 8 22:39:15 2013 +0100

    WIP: More memcheck make target tweaks

 glib-tap.mk |    2 +-
 glib.mk     |   13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/glib-tap.mk b/glib-tap.mk
index c1f40ce..defd311 100644
--- a/glib-tap.mk
+++ b/glib-tap.mk
@@ -137,7 +137,7 @@ VALGRIND_ARGS = \
        --leak-check=full \
        --show-leak-kinds=all \
        --child-silent-after-fork=yes \
-       --suppressions=$(abs_topsrcdir)/build/glib-test.supp \
+       --suppressions=$(abs_top_srcdir)/build/glib-test.supp \
        $(NULL)
 
 memcheck: $(test_programs)
diff --git a/glib.mk b/glib.mk
index de87d58..3b01813 100644
--- a/glib.mk
+++ b/glib.mk
@@ -168,3 +168,16 @@ installed_test_meta_DATA = $(installed_testcases:=.test)
 
 CLEANFILES += $(installed_test_meta_DATA)
 endif
+
+VALGRIND_ARGS = \
+       --leak-check=full \
+       --show-leak-kinds=all \
+       --child-silent-after-fork=yes \
+       --suppressions=$(abs_top_srcdir)/build/glib-test.supp \
+       $(NULL)
+
+memcheck: $(test_programs)
+       $(MAKE) check-am \
+               TESTS_ENVIRONMENT="G_DEBUG='gc-friendly cleanup'" \
+               LOG_COMPILER="libtool --mode=execute valgrind $(VALGRIND_ARGS) --quiet --log-fd=7" \
+               AM_TESTS_FD_REDIRECT="7>&2"


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