From e9dba2468c5ed4cf081a39d1ab16a8c6d85abb07 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 15 Jul 2019 11:00:05 -0400 Subject: [PATCH] tests/ecore_wl2: Add test for ecore_wl2_display_registry_get function ref T8016 --- src/tests/ecore_wl2/ecore_wl2_test_display.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c index 37fa1e5..c76b7d6 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); -- 2.7.4