Files
tiny_computer/android/extern/wolfssl/valgrind-error.sh
2024-02-29 19:35:00 +08:00

25 lines
289 B
Bash

#!/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