]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
VALGRIND_CHECK_LEAKS logic was backwards :(
authorDamien Miller <djm@mindrot.org>
Wed, 11 Jul 2018 00:19:56 +0000 (10:19 +1000)
committerDamien Miller <djm@mindrot.org>
Wed, 11 Jul 2018 00:19:56 +0000 (10:19 +1000)
regress/test-exec.sh
regress/valgrind-unit.sh

index ed235cfafa9033a17eab6669d40609a5dba32d17..f09fe0ec43aea0b3620a1ef923c881eec234dd5b 100644 (file)
@@ -164,7 +164,7 @@ if [ "x$USE_VALGRIND" != "x" ]; then
 
        if [ x"$VG_SKIP" = "x" ]; then
                VG_LEAK="--leak-check=no"
-               if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then
+               if [ x"$VALGRIND_CHECK_LEAKS" != "x" ]; then
                        VG_LEAK="--leak-check=full"
                fi
                VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*"
index c353c2cbce88dfaab44d3825daafff013adf4186..d1c11000847cc82ceb81c3502a545e8c41c2d7d5 100755 (executable)
@@ -9,7 +9,7 @@ test "x$OBJ" = "x" && OBJ=$PWD
 # This mostly replicates the logic in test-exec.sh for running the
 # regress tests under valgrind.
 VG_LEAK="--leak-check=no"
-if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then
+if [ x"$VALGRIND_CHECK_LEAKS" != "x" ]; then
        VG_LEAK="--leak-check=full"
 fi
 VG_TEST=`basename $UNIT_BINARY`