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:
Fabian Boehm 2024-04-25 21:52:56 +02:00
parent 691acfc28d
commit 7ec715ba8b

View file

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