diff options
author | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2007-01-30 15:58:00 +0000 |
---|---|---|
committer | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2007-01-30 15:58:00 +0000 |
commit | 8c989834ae686336b8b0c5524677af3b6f174c23 (patch) | |
tree | 7e84ac881bef1f9150e3231ea61d2a715c013ab1 /scripts | |
parent | ab9341d62e94b0a4110766268b0bf9848f78c42d (diff) | |
download | libnice-8c989834ae686336b8b0c5524677af3b6f174c23.tar.gz |
add valgrind wrapper script
darcs-hash:20070130155851-c9803-01fe933f2e02f51f174d4a204829ed60216bfb75.gz
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/valgrind.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/valgrind.sh b/scripts/valgrind.sh new file mode 100755 index 0000000..ad8a8ff --- /dev/null +++ b/scripts/valgrind.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e +export G_SLICE=always-malloc + +report=`valgrind \ + -q \ + --leak-check=full \ + --show-reachable=no \ + --error-exitcode=1 \ + $1 2>&1` + +if echo "$report" | grep -q ==; then + echo "$report" + exit 1 +fi |