summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2020-01-08 10:42:11 -0500
committerChristopher Michael <cp.michael@samsung.com>2020-01-08 10:42:11 -0500
commita9ded0ab5c0d463208c5305856107fb27bb73271 (patch)
tree3f9df7159195d955ea51f52739aacde08db02b7d
parent0bb0d862cebdfbb6b1f7f96f3ed3a62b102e55fb (diff)
downloadefl-a9ded0ab5c0d463208c5305856107fb27bb73271.tar.gz
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
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_input.c4
1 files changed, 3 insertions, 1 deletions
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);