diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-01-28 16:40:09 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-01-29 10:48:18 -0800 |
commit | 637a8e27850ee6c6bd00fed805687149230911d1 (patch) | |
tree | 9525befeda4974a13b1df4bb1d714065e73fb58d /tests/egl | |
parent | 038b496e783c34773e5ef561f22ed293fd4ca4fd (diff) |
egl_khr_create_context: Fix for drivers that don't support GL >= 2.0
Fix for test egl_khr_create_context/default-minor-version-gl.
According to comments in the test: "The Linux OpenGL ABI only requires
OpenGL 1.2, so this might fail to create a context." If the driver failed
to create a 2.x context, then the test failed. This patch changes it to
skip.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59510
Reported-by: Lu Hua <huax.lu@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests/egl')
-rw-r--r-- | tests/egl/spec/egl_khr_create_context/default-minor-version-gl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/egl/spec/egl_khr_create_context/default-minor-version-gl.c b/tests/egl/spec/egl_khr_create_context/default-minor-version-gl.c index ef610675e..77050df94 100644 --- a/tests/egl/spec/egl_khr_create_context/default-minor-version-gl.c +++ b/tests/egl/spec/egl_khr_create_context/default-minor-version-gl.c @@ -54,8 +54,10 @@ int main(int argc, char **argv) */ ctx = eglCreateContext(egl_dpy, cfg, EGL_NO_CONTEXT, attribs); if (ctx == EGL_NO_CONTEXT) { - fprintf(stderr, "eglCreateContext() failed\n"); - piglit_report_result(PIGLIT_FAIL); + fprintf(stderr, "eglCreateContext() failed with " + "EGL_CONTEXT_MAJOR_VERSION_KHR=%d. skipping " + "test.\n", attribs[1]); + piglit_report_result(PIGLIT_SKIP); } if (!eglMakeCurrent(egl_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, ctx)) { |