summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2018-07-11 10:19:56 +1000
committerDamien Miller <djm@mindrot.org>2018-07-11 10:19:56 +1000
commitfccfa239def497615f92ed28acc57cfe63da3666 (patch)
tree32114c198c8696df04d1cff8788a5654a4bbc283 /regress
parent416287d45fcde0a8e66eee8b99aa73bd58607588 (diff)
VALGRIND_CHECK_LEAKS logic was backwards :(
Diffstat (limited to 'regress')
-rw-r--r--regress/test-exec.sh2
-rwxr-xr-xregress/valgrind-unit.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index ed235cfaf..f09fe0ec4 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -164,7 +164,7 @@ if [ "x$USE_VALGRIND" != "x" ]; then
164 164
165 if [ x"$VG_SKIP" = "x" ]; then 165 if [ x"$VG_SKIP" = "x" ]; then
166 VG_LEAK="--leak-check=no" 166 VG_LEAK="--leak-check=no"
167 if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then 167 if [ x"$VALGRIND_CHECK_LEAKS" != "x" ]; then
168 VG_LEAK="--leak-check=full" 168 VG_LEAK="--leak-check=full"
169 fi 169 fi
170 VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*" 170 VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*"
diff --git a/regress/valgrind-unit.sh b/regress/valgrind-unit.sh
index c353c2cbc..d1c110008 100755
--- a/regress/valgrind-unit.sh
+++ b/regress/valgrind-unit.sh
@@ -9,7 +9,7 @@ test "x$OBJ" = "x" && OBJ=$PWD
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.
11VG_LEAK="--leak-check=no" 11VG_LEAK="--leak-check=no"
12if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then 12if [ x"$VALGRIND_CHECK_LEAKS" != "x" ]; then
13 VG_LEAK="--leak-check=full" 13 VG_LEAK="--leak-check=full"
14fi 14fi
15VG_TEST=`basename $UNIT_BINARY` 15VG_TEST=`basename $UNIT_BINARY`