diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-08 03:12:29 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:40 -0400 |
commit | 0c10d1c3fdf4fa17e9880d318ee37c4b45d0daf2 (patch) | |
tree | 74ecbb37abcc9b283186c0f41bb84ee8ab7d3cda /valgrind.sh | |
parent | fa81dc479801ba1343695d66cdb37d8b80bfae9d (diff) | |
download | fork-ledger-0c10d1c3fdf4fa17e9880d318ee37c4b45d0daf2.tar.gz fork-ledger-0c10d1c3fdf4fa17e9880d318ee37c4b45d0daf2.tar.bz2 fork-ledger-0c10d1c3fdf4fa17e9880d318ee37c4b45d0daf2.zip |
Use valgrind if it's available.
Diffstat (limited to 'valgrind.sh')
-rwxr-xr-x | valgrind.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/valgrind.sh b/valgrind.sh new file mode 100755 index 00000000..fe292f44 --- /dev/null +++ b/valgrind.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +VALGRIND=$(which valgrind 2>&1) + +if [ -x "$VALGRIND" ]; then + exec "$VALGRIND" --leak-check=full --show-reachable=yes "$@" +else + exec "$@" +fi |