Maybe fix tests/server:NoZombie occasional failure

Introduced a two-second wait for the KILLed process to die.
This commit is contained in:
Andrew Bettison 2013-01-10 12:12:51 +10:30
parent b77df878c1
commit 5ac394a3c1

View File

@ -126,7 +126,10 @@ test_NoZombie() {
assert kill -KILL $servald_pid
tfw_log "After kill -KILL $servald_pid"
ps -l $start_pid $servald_pid
assert --message="zombie servald process does not exist" ! kill -0 $servald_pid
wait_until --timeout=2 ! kill -0 $servald_pid 2>/dev/null
tfw_log "After waiting"
ps -l $start_pid $servald_pid
assert --message="zombie servald process does not exist" ! kill -0 $servald_pid 2>/dev/null
}
teardown_NoZombie() {
kill -TERM $start_pid