]> git.pond.sub.org Git - empserver/commit
Make smoke test time out instead of hang when server misbehaves
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 25 Mar 2013 15:58:25 +0000 (16:58 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:55 +0000 (06:57 +0200)
commita59e4960247ba611690cd9da9fe17288e8db7730
treeb7e708a92ee75959a918a8cdd386f817320bf781
parent3f7062772d817f3fcd0eb74db165c2acb14dd66e
Make smoke test time out instead of hang when server misbehaves

The smoke test waits for the server completing startup by trying to
connect until it works.  Hangs if the server doesn't complete startup
for some reason.  Make it give up after 5s.

Likewise, The smoke test waits for the server to terminate by trying
kill -0 until it fails.  Hangs if the server doesn't terminate.  Make
it give up after 5s.
tests/test-common.sh