summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <devilhorns@comcast.net>2020-06-10 08:38:02 -0400
committerChristopher Michael <devilhorns@comcast.net>2020-06-10 08:38:02 -0400
commit9e99fc2e3f10a5af900c50f0bab230683080bbe6 (patch)
tree9593e9c28462231c9ae4d429d72df19f184b1911
parentca1eba10af084bd44d2aa1738b2b55a408ece802 (diff)
tests/ecore_wl2: Fix unchecked return value
Coverity reports that we do not check the return of eglInitialize here. Fixes Coverity CID1412362
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
index f235a481bb..4446bc547f 100644
--- a/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
+++ b/src/tests/ecore_wl2/ecore_wl2_tests_helper_egl.h
@@ -22,7 +22,12 @@ _init_egl(Test_Data *td)
22 td->egl_display = 22 td->egl_display =
23 eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display)); 23 eglGetDisplay((EGLNativeDisplayType)ecore_wl2_display_get(td->display));
24 24
25 eglInitialize(td->egl_display, NULL, NULL); 25 if (!eglInitialize(td->egl_display, NULL, NULL))
26 {
27 ERR("Failed to initialize egl");
28 eglTerminate(td->egl_display);
29 return EINA_FALSE;
30 }
26 31
27 if (!eglChooseConfig(td->egl_display, attributes, &td->egl_conf, 32 if (!eglChooseConfig(td->egl_display, attributes, &td->egl_conf,
28 1, &num_config)) 33 1, &num_config))