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)
downloadefl-7a85ad660b9f5ffb6694ce2b14fc1ba92f4f0b78.tar.gz
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)
}
EFL_END_TEST
+EFL_START_TEST(wl2_display_registry_get)
+{
+ Ecore_Wl2_Display *disp;
+
+ disp = ECORE_WL2_TEST_DISPLAY_CONNECT();
+ ck_assert(disp != NULL);
+
+ ck_assert(ecore_wl2_display_registry_get(disp) != NULL);
+}
+EFL_END_TEST
+
EFL_START_TEST(wl2_display_shm_get)
{
Ecore_Wl2_Display *disp;
@@ -157,6 +168,7 @@ ecore_wl2_test_display(TCase *tc)
printf("Wayland Compositor detected. Testing client-side functions\n");
tcase_add_test(tc, wl2_display_connect);
tcase_add_test(tc, wl2_display_disconnect);
+ tcase_add_test(tc, wl2_display_registry_get);
tcase_add_test(tc, wl2_display_shm_get);
tcase_add_test(tc, wl2_display_dmabuf_get);
tcase_add_test(tc, wl2_display_globals_get);