]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
run-test: Fixed to work correctly with older Valgrind versions.
authorTimo Sirainen <tss@iki.fi>
Tue, 13 Apr 2010 11:34:25 +0000 (14:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 13 Apr 2010 11:34:25 +0000 (14:34 +0300)
--HG--
branch : HEAD

run-test.sh

index 6cdf3850504bd8d67a6567b617d141b109ecc6e7..aa5d53459d0e8483af546d34bdb0472d87d81ec3 100644 (file)
@@ -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