summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-11-12 09:22:09 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-11-12 09:22:09 -0500
commitfb718059256e4a124800c4145c3a90fd92ca0ffe (patch)
tree2761392c8e478ed9c820c1b61b54281f1992a6e2
parent246485ca928d26144ca3188d895bb7b44a73d3ad (diff)
tests/ecore_wl2: Add test for ecore_wl2_display_compositor_version_get
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c
index 7f6f4cc9df..99b441b433 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -164,6 +164,19 @@ EFL_START_TEST(wl2_display_inputs_get)
164} 164}
165EFL_END_TEST 165EFL_END_TEST
166 166
167EFL_START_TEST(wl2_display_compositor_version_get)
168{
169 Ecore_Wl2_Display *disp;
170 int ver;
171
172 disp = _display_connect();
173 ck_assert(disp != NULL);
174
175 ver = ecore_wl2_display_compositor_version_get(disp);
176 ck_assert_int_ne(ver, 0);
177}
178EFL_END_TEST
179
167void 180void
168ecore_wl2_test_display(TCase *tc) 181ecore_wl2_test_display(TCase *tc)
169{ 182{
@@ -188,5 +201,6 @@ ecore_wl2_test_display(TCase *tc)
188 tcase_add_test(tc, wl2_display_globals_get); 201 tcase_add_test(tc, wl2_display_globals_get);
189 tcase_add_test(tc, wl2_display_screen_size_get); 202 tcase_add_test(tc, wl2_display_screen_size_get);
190 tcase_add_test(tc, wl2_display_inputs_get); 203 tcase_add_test(tc, wl2_display_inputs_get);
204 tcase_add_test(tc, wl2_display_compositor_version_get);
191 } 205 }
192} 206}