1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
1 |
#!/bin/sh
|
2 |
||
3 |
trap "rm -f test.out.$$" 0 1 2 3 15 |
|
4 |
||
5 |
if valgrind --version | grep '^valgrind-3.[012]'; then |
|
6 |
# RHEL 5.4 still has Valgrind v3.2
|
|
7 |
valgrind -q --log-file-exactly=test.out.$$ $* |
|
1.13.11
by Jaldhar H. Vyas
Import upstream version 2.1.17 |
8 |
ret=$? |
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
9 |
else
|
10 |
# v3.3+
|
|
11 |
valgrind -q --log-file=test.out.$$ $* |
|
1.13.11
by Jaldhar H. Vyas
Import upstream version 2.1.17 |
12 |
ret=$? |
1.13.8
by Marco Nenciarini
Import upstream version 2.0.11 |
13 |
fi
|
14 |
if [ -s test.out.$$ ]; then |
|
15 |
cat test.out.$$
|
|
16 |
exit 1 |
|
17 |
fi
|
|
1.13.11
by Jaldhar H. Vyas
Import upstream version 2.1.17 |
18 |
exit $ret |