tests: Test that send overflow doesn't abort
authorManuel Stoeckl <code@mstoeckl.com>
Sun, 18 Aug 2019 16:36:14 +0000 (12:36 -0400)
committerManuel Stoeckl <code@mstoeckl.com>
Tue, 10 Sep 2019 11:59:50 +0000 (07:59 -0400)
commita89a5349af690f87c24abcaafc524f2cfd6e9d24
treee8701d68b0a22a64992342d002001e26dceb1caa
parent8a831ac6ec359c0dff67d2f4221fcd48a3a9a4ce
tests: Test that send overflow doesn't abort

The new display test runs a client that makes a very large number of
trivial requests. After responding to initial setup requests, the server
is paused, letting the trivial requests fill up the Unix socket buffer,
making further writes to the socket fail. The test then checks that the
client sets an appropriate error code, and does not abort or crash.

Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
tests/display-test.c
tests/test-compositor.c
tests/test-compositor.h