From: Timo Sirainen Date: Tue, 13 Apr 2010 11:34:25 +0000 (+0300) Subject: run-test: Fixed to work correctly with older Valgrind versions. X-Git-Tag: 2.0.beta5~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ac087a7fc8cf8c16b2145e5e8be048db94068f7;p=thirdparty%2Fdovecot%2Fcore.git run-test: Fixed to work correctly with older Valgrind versions. --HG-- branch : HEAD --- diff --git a/run-test.sh b/run-test.sh index 6cdf385050..aa5d53459d 100644 --- a/run-test.sh +++ b/run-test.sh @@ -2,7 +2,13 @@ trap "rm -f test.out.$$" 0 1 2 3 15 -valgrind -q --log-file=test.out.$$ $* +if valgrind --version | grep '^valgrind-3.[012]'; then + # RHEL 5.4 still has Valgrind v3.2 + valgrind -q --log-file-exactly=test.out.$$ $* +else + # v3.3+ + valgrind -q --log-file=test.out.$$ $* +fi if [ -s test.out.$$ ]; then cat test.out.$$ exit 1