diff options
Diffstat (limited to 'regress')
-rwxr-xr-x | regress/valgrind-unit.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/regress/valgrind-unit.sh b/regress/valgrind-unit.sh index d1c110008..4143ead4b 100755 --- a/regress/valgrind-unit.sh +++ b/regress/valgrind-unit.sh | |||
@@ -7,11 +7,9 @@ UNIT_ARGS="$@" | |||
7 | test "x$OBJ" = "x" && OBJ=$PWD | 7 | 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, except that we unconditionally enable |
11 | VG_LEAK="--leak-check=no" | 11 | # leak checking because the unit tests should be clean. |
12 | if [ x"$VALGRIND_CHECK_LEAKS" != "x" ]; then | 12 | VG_LEAK="--leak-check=full" |
13 | VG_LEAK="--leak-check=full" | ||
14 | fi | ||
15 | VG_TEST=`basename $UNIT_BINARY` | 13 | VG_TEST=`basename $UNIT_BINARY` |
16 | VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p" | 14 | VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p" |
17 | VG_OPTS="--track-origins=yes $VG_LEAK --log-file=${VG_LOG}" | 15 | VG_OPTS="--track-origins=yes $VG_LEAK --log-file=${VG_LOG}" |