summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2018-07-11 09:56:36 +1000
committerDamien Miller <djm@mindrot.org>2018-07-11 09:57:44 +1000
commitd20720d373d8563ee737d1a45dc5e0804d622dbc (patch)
tree187b54db40342d9960acecd9e47089444ff7b227 /regress/test-exec.sh
parent79c9d35018f3a5e30ae437880b669aa8636cd3cd (diff)
disable valgrind memleak checking by default
Add VALGRIND_CHECK_LEAKS knob to turn it back on.
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index a314a57b4..ed235cfaf 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -163,9 +163,13 @@ if [ "x$USE_VALGRIND" != "x" ]; then
163 esac 163 esac
164 164
165 if [ x"$VG_SKIP" = "x" ]; then 165 if [ x"$VG_SKIP" = "x" ]; then
166 VG_LEAK="--leak-check=no"
167 if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then
168 VG_LEAK="--leak-check=full"
169 fi
166 VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*" 170 VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*"
167 VG_LOG="$OBJ/valgrind-out/${VG_TEST}." 171 VG_LOG="$OBJ/valgrind-out/${VG_TEST}."
168 VG_OPTS="--track-origins=yes --leak-check=full" 172 VG_OPTS="--track-origins=yes $VG_LEAK"
169 VG_OPTS="$VG_OPTS --trace-children=yes" 173 VG_OPTS="$VG_OPTS --trace-children=yes"
170 VG_OPTS="$VG_OPTS --trace-children-skip=${VG_IGNORE}" 174 VG_OPTS="$VG_OPTS --trace-children-skip=${VG_IGNORE}"
171 VG_PATH="valgrind" 175 VG_PATH="valgrind"