From a9ded0ab5c0d463208c5305856107fb27bb73271 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 8 Jan 2020 10:42:11 -0500 Subject: tests/ecore_wl2: Fix input_keymap test The test for ecore_wl2_input_keymap_get was causing failues in the suite because we need to verify that the input device is a keyboard before we can check for a keymap. ref T8016 --- src/tests/ecore_wl2/ecore_wl2_test_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/ecore_wl2/ecore_wl2_test_input.c b/src/tests/ecore_wl2/ecore_wl2_test_input.c index 73056a77fa..696a6c7c9f 100644 --- a/src/tests/ecore_wl2/ecore_wl2_test_input.c +++ b/src/tests/ecore_wl2/ecore_wl2_test_input.c @@ -102,7 +102,9 @@ EFL_START_TEST(wl2_input_keymap_get) EINA_ITERATOR_FOREACH(itr, input) { - ck_assert(ecore_wl2_input_keymap_get(input) != NULL); + if (ecore_wl2_input_seat_capabilities_get(input) == + ECORE_WL2_SEAT_CAPABILITIES_KEYBOARD) + ck_assert(ecore_wl2_input_keymap_get(input) != NULL); } eina_iterator_free(itr); -- cgit v1.2.1