mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:01:13 -03: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:
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
|
||||
Reference in New Issue
Block a user