Permalink
Browse files

Add check in vg script for valgrind executable.

  • Loading branch information...
1 parent 60ed507 commit ebd203036b7937d2075e55ecad3f751bfffafff6 @fmela committed Feb 28, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 vg
View
5 vg
@@ -1,5 +1,10 @@
#!/bin/sh
+if ! which valgrind >/dev/null; then
+ echo "`basename $0`: valgrind not found." >&2
+ exit 1
+fi
+
valgrind --tool=memcheck --trace-children=yes \
--track-fds=yes --num-callers=32 \
--memcheck:leak-check=yes --memcheck:leak-resolution=high \

0 comments on commit ebd2030

Please sign in to comment.