summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-08-01 08:53:45 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-08-01 08:53:45 -0400
commitf166cf3741c0a5ecc71a6a9ddf2b17b3b5f65fee (patch)
treef35454f2e4b4821354aca6d2b17ca908085f3747 /src/tests
parentf481b6acf19c7a59c43fc138070c0fce04fd1988 (diff)
tests/ecore_wl2: Add test for ecore_wl2_input_seat_id_get function
ref T8016
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_input.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_input.c b/src/tests/ecore_wl2/ecore_wl2_test_input.c
index 074455a394..814fa800b3 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_input.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_input.c
@@ -43,11 +43,36 @@ EFL_START_TEST(wl2_input_seat_get)
43} 43}
44EFL_END_TEST 44EFL_END_TEST
45 45
46EFL_START_TEST(wl2_input_seat_id_get)
47{
48 Ecore_Wl2_Display *disp;
49 Ecore_Wl2_Input *input;
50 Eina_Iterator *itr;
51
52 disp = _display_connect();
53 ck_assert(disp != NULL);
54
55 itr = ecore_wl2_display_inputs_get(disp);
56 ck_assert(itr != NULL);
57
58 EINA_ITERATOR_FOREACH(itr, input)
59 {
60 int id;
61
62 id = ecore_wl2_input_seat_id_get(input);
63 ck_assert_int_ne(id, 0);
64 }
65
66 eina_iterator_free(itr);
67}
68EFL_END_TEST
69
46void 70void
47ecore_wl2_test_input(TCase *tc) 71ecore_wl2_test_input(TCase *tc)
48{ 72{
49 if (getenv("WAYLAND_DISPLAY")) 73 if (getenv("WAYLAND_DISPLAY"))
50 { 74 {
51 tcase_add_test(tc, wl2_input_seat_get); 75 tcase_add_test(tc, wl2_input_seat_get);
76 tcase_add_test(tc, wl2_input_seat_id_get);
52 } 77 }
53} 78}