You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
289 B
Bash
25 lines
289 B
Bash
4 years ago
|
#!/bin/sh
|
||
|
#
|
||
|
#
|
||
|
# Our valgrind "error" wrapper.
|
||
|
|
||
|
TMP="valgrind.tmp.$$"
|
||
|
|
||
|
valgrind --suppressions=valgrind-bash.supp --leak-check=full -q "$@" 2> $TMP
|
||
|
|
||
|
result="$?"
|
||
|
|
||
|
# verify no errors
|
||
|
|
||
|
output="`cat $TMP`"
|
||
|
|
||
|
if [ "$output" != "" ]; then
|
||
|
cat $TMP >&2
|
||
|
result=1
|
||
|
fi
|
||
|
|
||
|
rm $TMP
|
||
|
|
||
|
exit $result
|
||
|
|