From: Josh Coalson Date: Mon, 20 Nov 2006 05:29:59 +0000 (+0000) Subject: add logging of command to valgrind log X-Git-Tag: 1.2.0~263 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ebb95cda01b89299925dd840e900d6c8c289d16;p=platform%2Fupstream%2Fflac.git add logging of command to valgrind log --- diff --git a/test/test_flac.sh b/test/test_flac.sh index b381184..ae62908 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 2e21fb6..7bc919e 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