tests: Ensure that overflow test always overflows
authorManuel Stoeckl <code@mstoeckl.com>
Sat, 11 Jan 2020 17:38:46 +0000 (12:38 -0500)
committerPekka Paalanen <pq@iki.fi>
Wed, 15 Jan 2020 13:18:56 +0000 (13:18 +0000)
commit6ddd0636e0d4124c64993329b11a6c656a1841df
tree0e2d71f59a135bd25169f9bfb5e5f0635571ad64
parente449232f37256a7db3311399b311984271efa1e7
tests: Ensure that overflow test always overflows

While the default Unix socket buffer size on Linux is relatively
small, on some computers the default size may be configured to
be huge, making the overflow test never actually overflow the
Wayland display socket.

The changed code now explicitly sets the display socket send buffer
size to be small enough to guarantee an overflow.

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