From 6732229ccc64f82147f472e03634354aa4cfa9b5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Aug 2005 16:12:21 +0000 Subject: r8884: valgrind error logs only matter if non-zero in size (This used to be commit baaad4f4a4c84fb0261ab59d31a680f33b1beb47) --- source4/script/tests/selftest.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh index 664fca1819..17e991cc72 100755 --- a/source4/script/tests/selftest.sh +++ b/source4/script/tests/selftest.sh @@ -152,9 +152,11 @@ echo "END: $END ($0)"; list=`find $PREFIX -name 'valgrind.log*'` if [ x$list != x ]; then for f in $PREFIX/valgrind.log*; do - echo "VALGRIND FAILURE"; - failed=`expr $failed + 1` - cat $f + if [ -s $f ]; then + echo "VALGRIND FAILURE"; + failed=`expr $failed + 1` + cat $f + fi done fi -- cgit