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
This commit is contained in:
Christopher Michael 2020-01-08 10:42:11 -05:00
parent 0bb0d862ce
commit a9ded0ab5c
1 changed files with 3 additions and 1 deletions

View File

@ -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);