summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-15 10:31:56 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-15 11:01:25 -0400
commit3a3a2f667a182d7c940845cfe6ac546331666623 (patch)
tree1069f8cb999c3741bcb9cfdeb11049592e701dbe
parent723412404f812d0ec4479d6b9c1a3cea07c9f7bf (diff)
tests/ecore_wl2: Add ecore_wl2_display_shm_get test
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 c79621ac74..941b06e35e 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -75,6 +75,19 @@ EFL_START_TEST(wl2_display_disconnect)
75} 75}
76EFL_END_TEST 76EFL_END_TEST
77 77
78EFL_START_TEST(wl2_display_shm_get)
79{
80 Ecore_Wl2_Display *disp;
81 struct wl_shm *shm;
82
83 disp = ECORE_WL2_TEST_DISPLAY_CONNECT();
84 ck_assert(disp != NULL);
85
86 shm = ecore_wl2_display_shm_get(disp);
87 ck_assert(shm != NULL);
88}
89EFL_END_TEST
90
78void 91void
79ecore_wl2_test_display(TCase *tc) 92ecore_wl2_test_display(TCase *tc)
80{ 93{
@@ -92,5 +105,6 @@ ecore_wl2_test_display(TCase *tc)
92 /* tests here are for client-side functions */ 105 /* tests here are for client-side functions */
93 tcase_add_test(tc, wl2_display_connect); 106 tcase_add_test(tc, wl2_display_connect);
94 tcase_add_test(tc, wl2_display_disconnect); 107 tcase_add_test(tc, wl2_display_disconnect);
108 tcase_add_test(tc, wl2_display_shm_get);
95 } 109 }
96} 110}