summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-15 11:00:05 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-15 11:01:49 -0400
commit7a85ad660b9f5ffb6694ce2b14fc1ba92f4f0b78 (patch)
tree538226c1a9fbd105f0f8b0a0ad694989e894bf81
parenta081920c7dda4459f35f89824f43f88cb2f61ab7 (diff)
tests/ecore_wl2: Add test for ecore_wl2_display_registry_get function
ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c12
1 files changed, 12 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 37fa1e5817..c76b7d6f72 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -75,6 +75,17 @@ EFL_START_TEST(wl2_display_disconnect)
75} 75}
76EFL_END_TEST 76EFL_END_TEST
77 77
78EFL_START_TEST(wl2_display_registry_get)
79{
80 Ecore_Wl2_Display *disp;
81
82 disp = ECORE_WL2_TEST_DISPLAY_CONNECT();
83 ck_assert(disp != NULL);
84
85 ck_assert(ecore_wl2_display_registry_get(disp) != NULL);
86}
87EFL_END_TEST
88
78EFL_START_TEST(wl2_display_shm_get) 89EFL_START_TEST(wl2_display_shm_get)
79{ 90{
80 Ecore_Wl2_Display *disp; 91 Ecore_Wl2_Display *disp;
@@ -157,6 +168,7 @@ ecore_wl2_test_display(TCase *tc)
157 printf("Wayland Compositor detected. Testing client-side functions\n"); 168 printf("Wayland Compositor detected. Testing client-side functions\n");
158 tcase_add_test(tc, wl2_display_connect); 169 tcase_add_test(tc, wl2_display_connect);
159 tcase_add_test(tc, wl2_display_disconnect); 170 tcase_add_test(tc, wl2_display_disconnect);
171 tcase_add_test(tc, wl2_display_registry_get);
160 tcase_add_test(tc, wl2_display_shm_get); 172 tcase_add_test(tc, wl2_display_shm_get);
161 tcase_add_test(tc, wl2_display_dmabuf_get); 173 tcase_add_test(tc, wl2_display_dmabuf_get);
162 tcase_add_test(tc, wl2_display_globals_get); 174 tcase_add_test(tc, wl2_display_globals_get);