Disable shebangless script tests in CI with sanitizers

Sanitizers inject a busted posix_spawn interceptor which mishandles
shebangless scripts. Disable this test under sanitizers.
This commit is contained in:
ridiculousfish 2022-12-02 17:07:15 -08:00
parent 717800cd6c
commit 4159b2a33b
2 changed files with 6 additions and 0 deletions

View file

@ -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"

View file

@ -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)