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:
Johannes Altmanninger 2024-04-13 18:23:46 +02:00
parent 29dc307111
commit 0c5deacedc

View 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