dovecot-2.0: run-test: Fixed to work correctly with older Valgri...

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 13 14:34:28 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/892d28020605
changeset: 11138:892d28020605
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 13 14:34:25 2010 +0300
description:
run-test: Fixed to work correctly with older Valgrind versions.

diffstat:

 run-test.sh |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r b11f69e5078e -r 892d28020605 run-test.sh
--- a/run-test.sh	Tue Apr 13 14:13:23 2010 +0300
+++ b/run-test.sh	Tue Apr 13 14:34:25 2010 +0300
@@ -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


More information about the dovecot-cvs mailing list