mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-18 05:34:45 -04:00
tests: Support tests that check for client failure
Add the display_destroy_expect_signal() function to check that test clients exit due to a particular signal. This is useful for checking that clients fail in an expected way. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
This commit is contained in:
parent
0ba650202e
commit
e09010f470
2 changed files with 21 additions and 3 deletions
|
|
@ -40,6 +40,7 @@ struct client_info {
|
|||
int pipe;
|
||||
pid_t pid;
|
||||
int exit_code;
|
||||
int kill_code;
|
||||
|
||||
struct wl_list link;
|
||||
void *data; /* for arbitrary use */
|
||||
|
|
@ -91,6 +92,7 @@ void noop_request(struct client *);
|
|||
*/
|
||||
struct display *display_create(void);
|
||||
void display_destroy(struct display *d);
|
||||
void display_destroy_expect_signal(struct display *d, int signum);
|
||||
void display_run(struct display *d);
|
||||
|
||||
/* This function posts the display_resumed event to all waiting clients,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue