mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Add a simple test for SIGINT out of loops
This commit is contained in:
11
tests/checks/sigint.fish
Normal file
11
tests/checks/sigint.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
#RUN: %fish -C "set helper %fish_test_helper" %s
|
||||
|
||||
# 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*}}
|
||||
Reference in New Issue
Block a user