From c6ca0735235764a88cb0744eb2c039e961e061ab Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 21 Aug 2005 11:15:57 +0000 Subject: [PATCH] run valgrind with proper env Original commit message from CVS: run valgrind with proper env --- check.mak | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/check.mak b/check.mak index 1defa18..c221a47 100644 --- a/check.mak +++ b/check.mak @@ -23,18 +23,16 @@ endif libtool --mode=execute \ $(VALGRIND_PATH) -q --suppressions=$(SUPPRESSIONS) \ --tool=memcheck --leak-check=yes --trace-children=yes \ - $* > valgrind.log 2>&1 + $* 2>&1 | tee valgrind.log @if grep "tely lost" valgrind.log; then \ - cat valgrind.log; \ rm valgrind.log; \ exit 1; \ fi - rm valgrind.log + @rm valgrind.log # valgrind all tests -valgrind: $(TESTS) +valgrind: $(TESTS) $(CHECK_REGISTRY) @echo "Valgrinding tests ..." - $(TESTS_ENVIRONMENT) $(GST_TOOLS_DIR)/gst-register-@GST_MAJORMINOR@ @failed=0; \ for t in $(filter-out $(VALGRIND_TESTS_DISABLE),$(TESTS)); do \ make $$t.valgrind; \ -- 2.7.4