This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
FreeRTOS-Kernel/FreeRTOS-Plus/Source/WolfSSL/valgrind-error.sh
2015-08-28 13:27:31 +00:00

23 lines
263 B
Bash

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