From 8ebb95cda01b89299925dd840e900d6c8c289d16 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Mon, 20 Nov 2006 05:29:59 +0000 Subject: [PATCH] add logging of command to valgrind log --- test/test_flac.sh | 2 ++ test/test_metaflac.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/test/test_flac.sh b/test/test_flac.sh index b3811843..ae629089 100755 --- a/test/test_flac.sh +++ b/test/test_flac.sh @@ -58,6 +58,7 @@ flac --help 1>/dev/null 2>/dev/null || die "ERROR can't find flac executable" run_flac () { if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 flac $*" >>test_flac.valgrind.log valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_flac.valgrind.log else flac $* @@ -67,6 +68,7 @@ run_flac () run_metaflac () { if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 metaflac $*" >>test_flac.valgrind.log valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 4>>test_flac.valgrind.log else metaflac $* diff --git a/test/test_metaflac.sh b/test/test_metaflac.sh index 2e21fb6d..7bc919e6 100755 --- a/test/test_metaflac.sh +++ b/test/test_metaflac.sh @@ -59,6 +59,7 @@ metaflac --help 1>/dev/null 2>/dev/null || die "ERROR can't find metaflac execut run_flac () { if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 flac $*" >>test_metaflac.valgrind.log valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 flac $* 4>>test_metaflac.valgrind.log else flac $* @@ -68,6 +69,7 @@ run_flac () run_metaflac () { if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 metaflac $*" >>test_metaflac.valgrind.log valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 4>>test_metaflac.valgrind.log else metaflac $* @@ -80,6 +82,7 @@ run_metaflac_silent () run_metaflac $* else if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then + echo "valgrind --leak-check=yes --show-reachable=yes --num-callers=100 metaflac $*" >>test_metaflac.valgrind.log valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --logfile-fd=4 metaflac $* 2>/dev/null 4>>test_metaflac.valgrind.log else metaflac $* 2>/dev/null