evas_gl: Pass a case once EGL_KHR is not supported 12/134312/1
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Fri, 16 Jun 2017 03:40:26 +0000 (12:40 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Fri, 16 Jun 2017 03:40:26 +0000 (12:40 +0900)
If EGL_KHR context is not supported on some system,
current test case should always fail.
To resolve the problem, this commit pass the case
once EGL_KHR is not supoorted on the running system.

Change-Id: Id45bd10ba56fe9a331e4ab9f412d7a7d4f667074

TC/evas/evas_gl/utc_evas_gl_context_version_create.c

index 7895cbe5ad6e440b993be97f50538b761c6937a2..b71b90b4fbb93be840b5a2f7c6602898964917f8 100644 (file)
@@ -366,6 +366,7 @@ START_TEST(utc_evas_gl_context_version_create_p_7)
        if (!strstr(ext_str, "EGL_KHR_create_context"))
        {
                printf("Not supported (EGL_KHR_create_context)");
+               return;
        }
 
        Evas_GL_Context_Version version = EVAS_GL_GLES_2_X | EVAS_GL_DEBUG;
@@ -674,6 +675,7 @@ START_TEST(utc_evas_gl_context_version_create_n_7)
        if (!strstr(ext_str, "EGL_KHR_create_context"))
        {
                printf("Not supported (EGL_KHR_create_context)");
+               return;
        }
 
        Evas_GL_Context_Version version = EVAS_GL_DEBUG;