From f5554906e76f7622203dac5865b0bafd6275925e Mon Sep 17 00:00:00 2001 From: Richard Schwarting Date: Sun, 29 Sep 2013 02:02:10 -0400 Subject: [PATCH] test/valgrind/Makefile: to use 'make run', get user to pass name of program to test as a macro --- test/valgrind/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/valgrind/Makefile b/test/valgrind/Makefile index cead46c3..5cb0d622 100644 --- a/test/valgrind/Makefile +++ b/test/valgrind/Makefile @@ -32,8 +32,9 @@ runnew: supp: *.supp cat *.supp > ../../gxml.supp +# use this like 'make run SUBJECT=./attributes' run: all - G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --suppressions=libxml2.supp --suppressions=gio.supp --suppressions=gtype.supp --suppressions=glib.supp --num-callers=40 ./document_create_minimal + G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --suppressions=libxml2.supp --suppressions=gio.supp --suppressions=gtype.supp --suppressions=glib.supp --num-callers=40 ${SUBJECT} run_nosupp: G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --num-callers=40 ./document -- GitLab