diff options
author | Damien Miller <djm@mindrot.org> | 2018-07-11 10:19:56 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-07-11 10:19:56 +1000 |
commit | fccfa239def497615f92ed28acc57cfe63da3666 (patch) | |
tree | 32114c198c8696df04d1cff8788a5654a4bbc283 /regress | |
parent | 416287d45fcde0a8e66eee8b99aa73bd58607588 (diff) |
VALGRIND_CHECK_LEAKS logic was backwards :(
Diffstat (limited to 'regress')
-rw-r--r-- | regress/test-exec.sh | 2 | ||||
-rwxr-xr-x | regress/valgrind-unit.sh | 2 |
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. |
11 | VG_LEAK="--leak-check=no" | 11 | VG_LEAK="--leak-check=no" |
12 | if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then | 12 | if [ x"$VALGRIND_CHECK_LEAKS" != "x" ]; then |
13 | VG_LEAK="--leak-check=full" | 13 | VG_LEAK="--leak-check=full" |
14 | fi | 14 | fi |
15 | VG_TEST=`basename $UNIT_BINARY` | 15 | VG_TEST=`basename $UNIT_BINARY` |