diff -up dovecot-2.2.10/run-test.sh.valgrindlog dovecot-2.2.10/run-test.sh --- dovecot-2.2.10/run-test.sh.valgrindlog 2016-06-17 17:53:22.685823573 +0200 +++ dovecot-2.2.10/run-test.sh 2016-06-17 17:54:06.303670444 +0200 @@ -2,7 +2,7 @@ trap "rm -f test.out.$$" 0 1 2 3 15 -if valgrind --version | grep '^valgrind-3.[012]'; then +if valgrind -q --log-file-exactly=/dev/null /bin/true >/dev/null 2>&1; then # RHEL 5.4 still has Valgrind v3.2 valgrind -q --log-file-exactly=test.out.$$ $* ret=$?