diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e72a2faf..9674027f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,6 +84,7 @@ jobs: make - name: make test env: + FISH_CI_SAN: 1 ASAN_OPTIONS: check_initialization_order=1:detect_stack_use_after_return=1:detect_leaks=1 UBSAN_OPTIONS: print_stacktrace=1:report_error_type=1 # use_tls=0 is a workaround for LSAN crashing with "Tracer caught signal 11" (SIGSEGV), @@ -106,6 +107,7 @@ jobs: sudo pip3 install pexpect - name: cmake env: + FISH_CI_SAN: 1 CC: clang CXX: clang++ CXXFLAGS: "-fsanitize=thread" diff --git a/tests/checks/noshebang.fish b/tests/checks/noshebang.fish index 010179035..008723f35 100644 --- a/tests/checks/noshebang.fish +++ b/tests/checks/noshebang.fish @@ -1,5 +1,9 @@ # RUN: %fish %s +# Do not run under sanitizers in CI, as they intercept a busted posix_spawn +# which mishandles shebangless scripts. +# REQUIRES: sh 'test -z $FISH_CI_SAN' + # Test for shebangless scripts - see 7802. set testdir (mktemp -d)