test-privserver-client: wait for server to die between iterations
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 20 Jan 2011 13:41:58 +0000 (13:41 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 21 Jan 2011 14:22:39 +0000 (14:22 +0000)
commit4fa3a89d3255649169f55e3bb55b05b9ef4029a1
tree7cb07d021fe7da5e48a5ed97c2f9b429a3b0538d
parenta9327eba3c163583edef7b76eb3aba134999344d
test-privserver-client: wait for server to die between iterations

This fixes a race condition: the server exits while the client continues
to the next iteration. If the server wins, the test passes. If the client
wins, it sends a message to the dying service, never gets a reply, and the
test fails.

My branch to refactor the main loop for fd.o #23194 seems to make the
client more likely to win this race, resulting in intermittent test
failures.

This is an instance of the general problem described by fd.o #11454.
test/name-test/test-privserver-client.c