mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 04:32:45 +08: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
|
@ -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 New Issue
Block a user