diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-08-01 16:12:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:15 -0500 |
commit | 6732229ccc64f82147f472e03634354aa4cfa9b5 (patch) | |
tree | 560b07f51363ec0b611ee56457039009d6078731 | |
parent | 66c270ba525e96d1cb7c3ab75c7137d3f62ddffb (diff) | |
download | samba-6732229ccc64f82147f472e03634354aa4cfa9b5.tar.gz samba-6732229ccc64f82147f472e03634354aa4cfa9b5.tar.bz2 samba-6732229ccc64f82147f472e03634354aa4cfa9b5.zip |
r8884: valgrind error logs only matter if non-zero in size
(This used to be commit baaad4f4a4c84fb0261ab59d31a680f33b1beb47)
-rwxr-xr-x | source4/script/tests/selftest.sh | 8 |
1 files 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 |