mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-03 01:41:30 -05:00
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>
This commit is contained in:
parent
8a831ac6ec
commit
a89a5349af
3 changed files with 88 additions and 4 deletions
|
|
@ -70,6 +70,7 @@ struct client {
|
|||
struct client *client_connect(void);
|
||||
void client_disconnect(struct client *);
|
||||
int stop_display(struct client *, int);
|
||||
void noop_request(struct client *);
|
||||
|
||||
/**
|
||||
* Usual workflow:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue