mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
f6bba5ceb4
I am not sure why this worked, actually. These tests did not have $fish set anywhere, and on my fresh OpenBSD VM it ended up calling whatever that calls "fish" (I think it's that "Go fish!" game?).
31 lines
732 B
Fish
31 lines
732 B
Fish
#RUN: %fish -C "set -g helper %fish_test_helper; set -g fish %fish" %s
|
|
|
|
# Check that nohup is propagated.
|
|
set fish (status fish-path)
|
|
set output_path (mktemp)
|
|
nohup $fish -c "$helper print_ignored_signals" 2>&1 > $output_path
|
|
cat $output_path
|
|
# CHECK: Hangup: 1
|
|
rm $output_path
|
|
|
|
# Block some signals if job control is off (#6828).
|
|
status job-control none
|
|
for fish_use_posix_spawn in 0 1
|
|
$helper print_blocked_signals &
|
|
wait
|
|
end
|
|
# CHECKERR: Interrupt: 2
|
|
# CHECKERR: Quit: 3
|
|
# CHECKERR: Interrupt: 2
|
|
# CHECKERR: Quit: 3
|
|
|
|
# Ensure we can break from a while loop.
|
|
|
|
echo About to sigint
|
|
$helper sigint_parent &
|
|
while true
|
|
end
|
|
echo I should not be printed because I got sigint
|
|
|
|
#CHECK: About to sigint
|
|
#CHECKERR: Sent SIGINT to {{\d*}}
|