forked from wolfSSL/wolfssl
add enable-valgrind
This commit is contained in:
22
valgrind-error.sh
Executable file
22
valgrind-error.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#
|
||||
# Our valgrind "error" wrapper.
|
||||
|
||||
valgrind --leak-check=full -q "$@" 2> valgrind.tmp
|
||||
|
||||
result="$?"
|
||||
|
||||
# verify no errors
|
||||
|
||||
output="`cat valgrind.tmp`"
|
||||
|
||||
if [ "$output" != "" ]; then
|
||||
cat valgrind.tmp >&2
|
||||
result=1
|
||||
fi
|
||||
|
||||
rm valgrind.tmp
|
||||
|
||||
exit $result
|
||||
|
Reference in New Issue
Block a user