mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03: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:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -84,6 +84,7 @@ jobs:
|
|||||||
make
|
make
|
||||||
- name: make test
|
- name: make test
|
||||||
env:
|
env:
|
||||||
|
FISH_CI_SAN: 1
|
||||||
ASAN_OPTIONS: check_initialization_order=1:detect_stack_use_after_return=1:detect_leaks=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
|
UBSAN_OPTIONS: print_stacktrace=1:report_error_type=1
|
||||||
# use_tls=0 is a workaround for LSAN crashing with "Tracer caught signal 11" (SIGSEGV),
|
# use_tls=0 is a workaround for LSAN crashing with "Tracer caught signal 11" (SIGSEGV),
|
||||||
@@ -106,6 +107,7 @@ jobs:
|
|||||||
sudo pip3 install pexpect
|
sudo pip3 install pexpect
|
||||||
- name: cmake
|
- name: cmake
|
||||||
env:
|
env:
|
||||||
|
FISH_CI_SAN: 1
|
||||||
CC: clang
|
CC: clang
|
||||||
CXX: clang++
|
CXX: clang++
|
||||||
CXXFLAGS: "-fsanitize=thread"
|
CXXFLAGS: "-fsanitize=thread"
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# RUN: %fish %s
|
# 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.
|
# Test for shebangless scripts - see 7802.
|
||||||
|
|
||||||
set testdir (mktemp -d)
|
set testdir (mktemp -d)
|
||||||
|
|||||||
Reference in New Issue
Block a user