mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 10:11:10 +08:00
Add test for updating the commandline state on background job exit
This is the regression test for 8386088b3 (Update commandline state changes eagerly as well, 2024-04-11).
This commit is contained in:
parent
29dc307111
commit
0c5deacedc
15
tests/checks/tmux-job.fish
Normal file
15
tests/checks/tmux-job.fish
Normal file
@ -0,0 +1,15 @@
|
||||
#RUN: %fish %s
|
||||
#REQUIRES: command -v tmux
|
||||
|
||||
isolated-tmux-start
|
||||
|
||||
isolated-tmux send-keys \
|
||||
"sleep 0.25 &" Enter \
|
||||
"echo hello"
|
||||
sleep .5
|
||||
isolated-tmux send-keys Space world
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: prompt 0> sleep 0.25 &
|
||||
# CHECK: prompt 0> echo hello
|
||||
# CHECK: fish: Job 1, 'sleep 0.25 &' has ended
|
||||
# CHECK: prompt 0> echo hello world
|
Loading…
x
Reference in New Issue
Block a user