diff options
author | Damien Miller <djm@mindrot.org> | 2018-07-11 09:56:36 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-07-11 09:57:44 +1000 |
commit | d20720d373d8563ee737d1a45dc5e0804d622dbc (patch) | |
tree | 187b54db40342d9960acecd9e47089444ff7b227 /regress/valgrind-unit.sh | |
parent | 79c9d35018f3a5e30ae437880b669aa8636cd3cd (diff) |
disable valgrind memleak checking by default
Add VALGRIND_CHECK_LEAKS knob to turn it back on.
Diffstat (limited to 'regress/valgrind-unit.sh')
-rwxr-xr-x | regress/valgrind-unit.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/regress/valgrind-unit.sh b/regress/valgrind-unit.sh index 433cb069a..c353c2cbc 100755 --- a/regress/valgrind-unit.sh +++ b/regress/valgrind-unit.sh | |||
@@ -8,9 +8,13 @@ test "x$OBJ" = "x" && OBJ=$PWD | |||
8 | 8 | ||
9 | # This mostly replicates the logic in test-exec.sh for running the | 9 | # This mostly replicates the logic in test-exec.sh for running the |
10 | # regress tests under valgrind. | 10 | # regress tests under valgrind. |
11 | VG_LEAK="--leak-check=no" | ||
12 | if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then | ||
13 | VG_LEAK="--leak-check=full" | ||
14 | fi | ||
11 | VG_TEST=`basename $UNIT_BINARY` | 15 | VG_TEST=`basename $UNIT_BINARY` |
12 | VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p" | 16 | VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p" |
13 | VG_OPTS="--track-origins=yes --leak-check=full --log-file=${VG_LOG}" | 17 | VG_OPTS="--track-origins=yes $VG_LEAK --log-file=${VG_LOG}" |
14 | VG_OPTS="$VG_OPTS --trace-children=yes" | 18 | VG_OPTS="$VG_OPTS --trace-children=yes" |
15 | VG_PATH="valgrind" | 19 | VG_PATH="valgrind" |
16 | if [ "x$VALGRIND_PATH" != "x" ]; then | 20 | if [ "x$VALGRIND_PATH" != "x" ]; then |