summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-01 16:12:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:15 -0500
commit6732229ccc64f82147f472e03634354aa4cfa9b5 (patch)
tree560b07f51363ec0b611ee56457039009d6078731 /source4/script
parent66c270ba525e96d1cb7c3ab75c7137d3f62ddffb (diff)
downloadsamba-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)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/tests/selftest.sh8
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