]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Disable rlimit sandbox, doesn't work with valgrind
authorDarren Tucker <dtucker@dtucker.net>
Sat, 20 Feb 2021 02:34:02 +0000 (13:34 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 21 Feb 2021 04:39:01 +0000 (15:39 +1100)
Only run regress tests, runing unit tests as well makes it run longer
than allowed y github.

.github/configs

index f5b6efe928a3ff2b72275f9a4dc37127c102fed7..280775e1f2de9febe481cd21b29dcda31214ff4f 100755 (executable)
@@ -56,7 +56,13 @@ case "$config" in
        TEST_TARGET=t-exec
        ;;
     valgrind)
-       TEST_TARGET="tests USE_VALGRIND=1"
+       # rlimit sandbox and FORTIFY_SOURCE confuse Valgrind.
+       CONFIGFLAGS="--without-sandbox --without-hardening"
+       CONFIGFLAGS="$CONFIGFLAGS --with-cppflags=-D_FORTIFY_SOURCE=0"
+       # Valgrind slows things down enough that the agent timeout test
+       # won't reliably pass, and the unit tests run longer than allowed
+       # by github.
+       TEST_TARGET="t-exec USE_VALGRIND=1 SKIP_LTESTS=agent-timeout"
        ;;
     *)
        echo "Unknown configuration $config"