tests: Synchronize client termination in idle callback
authorJonas Ådahl <jadahl@gmail.com>
Thu, 24 Dec 2015 04:41:46 +0000 (12:41 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 16 Jan 2016 08:37:36 +0000 (16:37 +0800)
commit7efe8fbd89b069947d616ba187732ce2c2804839
tree174da1d577c2c559f4d11ddddfb27c91e396c46a
parent242617c3161f7d50a592ab21607301aacd4e8f8c
tests: Synchronize client termination in idle callback

We currently wait for clients in the wl_client destroy signal, which is
called before the client is destructed and the socket is closed. If test
clients rely on being closed due to the socket being closed we'd dead
lock. Avoid this by synchronizing in an idle task that is called after
the client is fully destroyed.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
tests/test-compositor.c