RHEL 5.9 has valgrind v3.5 already, so there shouldn't really be any
important OSes using old valgrind that we need to support.
trap "rm -f test.out.$$" 0 1 2 3 15
-if valgrind --version | grep '^valgrind-3.[012]'; then
- # RHEL 5.4 still has Valgrind v3.2
- valgrind -q --log-file-exactly=test.out.$$ $*
- ret=$?
-else
- # v3.3+
- valgrind -q --log-file=test.out.$$ $*
- ret=$?
-fi
+valgrind -q --log-file=test.out.$$ $*
+ret=$?
if [ -s test.out.$$ ]; then
cat test.out.$$
exit 1