[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b
Török Edvin
edwin at clamav.net
Sun Apr 4 01:00:02 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit aa12dc2c4f4a6c4a863dec790085026cf9cc4666
Author: Török Edvin <edwin at clamav.net>
Date: Thu Aug 20 17:09:01 2009 +0300
Fix valgrind output parser to look for " 0 bytes" instead of "0 bytes",
it was failing to catch leaks which are multiples of 10.
diff --git a/unit_tests/valgrind_tests.sh b/unit_tests/valgrind_tests.sh
index d657866..f9fc318 100755
--- a/unit_tests/valgrind_tests.sh
+++ b/unit_tests/valgrind_tests.sh
@@ -21,14 +21,14 @@ parse_valgrindlog()
if test $NRUNS -eq `grep "ERROR SUMMARY: 0 errors" $1 | wc -l` && test `grep "FATAL:" $1|wc -l ` -eq 0; then
if test "$1" = "valgrind-race.log" ||
test $NRUNS -eq `grep "no leaks are possible" $1 | wc -l` ||
- test `grep "lost:" $1 | grep -v "0 bytes" | wc -l` -eq 0; then
+ test `grep "lost:" $1 | grep -v " 0 bytes" | wc -l` -eq 0; then
if test -z "$GENSUPP"; then
rm -f $1;
fi
return
else
echo "*** Valgrind test FAILED, memory LEAKS detected ***"
- grep "lost:" $1 | grep -v "0 bytes"
+ grep "lost:" $1 | grep -v " 0 bytes"
fi
else
if test "$1" = "valgrind-race.log" ; then
--
Debian repository for ClamAV
More information about the Pkg-clamav-commits
mailing list