mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
tests/job-ids: Wait for job to die
It was possible to start the new job and execute `jobs` again before the job died (or we noticed it did), so the test would fail. To properly test, we need to ensure the job has been removed. `wait` should do it.
This commit is contained in:
parent
25810b70f2
commit
cf508ee228
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,8 @@ jobs
|
|||
|
||||
status job-control interactive
|
||||
command kill -9 $tokill[2]
|
||||
# Wait for the job to die - the signal needs to be delivered.
|
||||
wait $tokill[2] 2>/dev/null
|
||||
set -e tokill[2]
|
||||
status job-control full
|
||||
sleep 400 &
|
||||
|
|
Loading…
Reference in a new issue