mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
tests: Fix noshebang test
This was silently skipped because of a broken REQUIRES line (it would be great if our test runner could surface skipped tests)
This commit is contained in:
parent
691acfc28d
commit
7ec715ba8b
1 changed files with 11 additions and 8 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# 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'
|
||||
# REQUIRES: test -z "$FISH_CI_SAN"
|
||||
|
||||
# Test for shebangless scripts - see 7802.
|
||||
|
||||
|
@ -45,18 +45,17 @@ sleep 0.1
|
|||
chmod a+x file.fish
|
||||
set -g fish_use_posix_spawn 0
|
||||
./file.fish
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
echo $status
|
||||
#CHECK: 126
|
||||
set -g fish_use_posix_spawn 1
|
||||
./file.fish
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
echo $status
|
||||
#CHECK: 126
|
||||
rm file.fish
|
||||
#CHECK: 126
|
||||
#CHECKERR: exec: {{.*}}{{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
|
||||
#CHECK: 126
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
|
||||
|
||||
# On to NUL bytes.
|
||||
|
@ -73,9 +72,11 @@ sleep 0.1
|
|||
runfile
|
||||
#CHECK: 126
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
|
||||
#CHECK: 126
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
|
||||
# Doesn't meet our heuristic as there is no lowercase before newline.
|
||||
echo -n -e 'NOPE\n\x00' >file
|
||||
|
@ -83,9 +84,11 @@ sleep 0.1
|
|||
runfile
|
||||
#CHECK: 126
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
|
||||
#CHECK: 126
|
||||
#CHECKERR: exec: {{.*}}
|
||||
#CHECKERR: exec: {{.*}}
|
||||
|
||||
echo 'echo foo' >./-
|
||||
sleep 0.1
|
||||
|
|
Loading…
Reference in a new issue