tests: Test that one can fetch the protocol error after EPIPE
authorJonas Ådahl <jadahl@gmail.com>
Mon, 28 Dec 2015 06:33:36 +0000 (14:33 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 16 Jan 2016 08:37:37 +0000 (16:37 +0800)
commitc6437817dd9bbb2fd1027a103e77e238ad5e5ddb
treeac7a72599a7b6140d33117f01c24611eb987fdaa
parent046012a6cf1a50e1de2c73cf5a29098453b0171f
tests: Test that one can fetch the protocol error after EPIPE

If a client is terminated due to some reason, it should always be
possible to retrieve protocol error associated with the termination.
Test that, while either using the dispatch helpers
(wl_display_dispatch(_queue)() or the prepare read API, it should be
possible to retrieve the error after EPIPE.

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