tests/ecore_wl2: Fix bad window test

Small patch to fix issue where merge of patch did not go so well, and
thus caused Coverity to report an issue where window was not being
initialized.

ref T8016

fixes CID1408311
This commit is contained in:
Chris Michael 2019-12-02 12:39:55 -05:00
parent 6d2a9ae1f8
commit 00aaf99765
1 changed files with 6 additions and 0 deletions

View File

@ -335,6 +335,12 @@ EFL_START_TEST(wl2_window_activated)
Ecore_Wl2_Window *win;
Eina_Bool ret;
disp = _display_connect();
ck_assert(disp != NULL);
win = _window_create(disp);
ck_assert(win != NULL);
ret = ecore_wl2_window_activated_get(win);
fail_if(ret != EINA_TRUE);