From 5187501e997d6b8c0d135542d21accde9e311281 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 19 Jan 2010 22:41:45 +0000 Subject: [PATCH] test: Add --track-origins=yes to valgrind flags. Enable origin tracking by default for make check-valgrind. This is slower and consumes more memory than regular valgrind, but the additional information provided about the source of the uninitialised data is often invaluable. --- test/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Makefile.am b/test/Makefile.am index b820dd5b9..5f3f42908 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1302,7 +1302,9 @@ TESTS_ENVIRONMENT = CAIRO_TEST_MODE="$(MODE)" CAIRO_TEST_TARGET="$(TARGETS)" CAI EXTRA_VALGRIND_FLAGS = $(CAIRO_EXTRA_VALGRIND_FLAGS) VALGRIND_FLAGS = \ --tool=memcheck --suppressions=$(srcdir)/.valgrind-suppressions \ - --leak-check=yes --show-reachable=yes $(EXTRA_VALGRIND_FLAGS) + --track-origins=yes \ + --leak-check=yes --show-reachable=yes \ + $(EXTRA_VALGRIND_FLAGS) CLEANFILES += \ valgrind-log \