mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00:00
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:
parent
717800cd6c
commit
4159b2a33b
2 changed files with 6 additions and 0 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue