tests/checks/disown.fish: improve test robustness

If the job never gets into stopped state, it will keep running forever.
Narrow the wait condition, to prevent a timeout in failure scenarios.
This commit is contained in:
Johannes Altmanninger
2026-04-20 17:02:04 +08:00
parent 31363120aa
commit fa33f6f0e0

View File

@@ -14,7 +14,7 @@ status job-control full
sleep 1 &
set -l pid (jobs -lp)
kill -SIGSTOP $pid
while not jobs | grep -q stopped
while jobs -l | grep -q running
sleep .01
end
disown