[glib/wip/gcleanup: 16/21] glib-tap.mk: Add a memcheck target to run valgrind
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 16/21] glib-tap.mk: Add a memcheck target to run valgrind
- Date: Thu, 7 Nov 2013 07:21:59 +0000 (UTC)
commit 848e0218986ba580a8b421dcb1a2dcbbe64c0025
Author: Stef Walter <stefw gnome org>
Date: Thu Oct 31 15:28:29 2013 +0100
glib-tap.mk: Add a memcheck target to run valgrind
https://bugzilla.gnome.org/show_bug.cgi?id=627423
glib-tap.mk | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glib-tap.mk b/glib-tap.mk
index 6b9d107..9e95ecb 100644
--- a/glib-tap.mk
+++ b/glib-tap.mk
@@ -1,6 +1,6 @@
# GLIB - Library of useful C routines
-TESTS_ENVIRONMENT= \
+AM_TESTS_ENVIRONMENT= \
G_TEST_SRCDIR="$(abs_srcdir)" \
G_TEST_BUILDDIR="$(abs_builddir)" \
G_DEBUG=gc-friendly \
@@ -132,3 +132,6 @@ installed_test_meta_DATA = $(installed_testcases:=.test)
CLEANFILES += $(installed_test_meta_DATA)
endif
+
+memcheck: $(test_programs)
+ $(MAKE) TESTS_ENVIRONMENT="G_DEBUG='gc-friendly cleanup'" LOG_COMPILER="libtool --mode=execute
valgrind --leak-check=full --quiet --log-fd=7" AM_TESTS_FD_REDIRECT="7>&2" check
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]