PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/valgrind-error.sh

https://github.com/andersmalm/cyassl
Shell | 22 lines | 9 code | 8 blank | 5 comment | 2 complexity | b2113d39ec7f363567363fb95b4a57c3 MD5 | raw file
Possible License(s): GPL-2.0
  1. #!/bin/sh
  2. #
  3. #
  4. # Our valgrind "error" wrapper.
  5. valgrind --leak-check=full -q "$@" 2> valgrind.tmp
  6. result="$?"
  7. # verify no errors
  8. output="`cat valgrind.tmp`"
  9. if [ "$output" != "" ]; then
  10. cat valgrind.tmp >&2
  11. result=1
  12. fi
  13. rm valgrind.tmp
  14. exit $result