tests/ecore_wl2: Add ecore_wl2_display_shm_get test

ref T8016
This commit is contained in:
Christopher Michael 2019-07-15 10:31:56 -04:00
parent 723412404f
commit 3a3a2f667a
1 changed files with 14 additions and 0 deletions

View File

@ -75,6 +75,19 @@ EFL_START_TEST(wl2_display_disconnect)
}
EFL_END_TEST
EFL_START_TEST(wl2_display_shm_get)
{
Ecore_Wl2_Display *disp;
struct wl_shm *shm;
disp = ECORE_WL2_TEST_DISPLAY_CONNECT();
ck_assert(disp != NULL);
shm = ecore_wl2_display_shm_get(disp);
ck_assert(shm != NULL);
}
EFL_END_TEST
void
ecore_wl2_test_display(TCase *tc)
{
@ -92,5 +105,6 @@ ecore_wl2_test_display(TCase *tc)
/* tests here are for client-side functions */
tcase_add_test(tc, wl2_display_connect);
tcase_add_test(tc, wl2_display_disconnect);
tcase_add_test(tc, wl2_display_shm_get);
}
}