[PATCH weston 1/3] tests: check kbd init in the plugin
Pekka Paalanen
ppaalanen at gmail.com
Thu Jun 16 10:36:15 UTC 2016
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Check that the keyboard init in weston-test.so plugin succeeds.
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
tests/weston-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/weston-test.c b/tests/weston-test.c
index bda0d91..b9242c3 100644
--- a/tests/weston-test.c
+++ b/tests/weston-test.c
@@ -603,7 +603,8 @@ module_init(struct weston_compositor *ec,
/* add devices */
weston_seat_init_pointer(&test->seat);
- weston_seat_init_keyboard(&test->seat, NULL);
+ if (weston_seat_init_keyboard(&test->seat, NULL) < 0)
+ return -1;
weston_seat_init_touch(&test->seat);
loop = wl_display_get_event_loop(ec->wl_display);
--
2.7.3
More information about the wayland-devel
mailing list