FreeRTOS-Kernel/FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/valgrind-error.sh
Carl Lundin 934020a5a2
Move WolfSSL to ThirdParty and Submodule code (#433)
* Submodule wolfSSL and move wolfSSL and WolfSSL-FIPS-Ready to ThirdParty folder.

* Update VS studio project.

* Update FIPS project settings.

* Update FIPS demo readme.

* Add md to ignored file extensions.
2020-12-03 17:42:50 -08:00

24 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