[Piglit] [PATCH 3/5] egl: Use piglit_require_egl_extension() when appropriate
Chad Versace
chad.versace at linux.intel.com
Sun Feb 9 13:31:14 PST 2014
This patch replaces all occurences of
if (!piglit_is_egl_extension_supported(...)) {
piglit_report_result(PIGLIT_SKIP);
}
with piglit_require_egl_extension().
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
tests/egl/spec/egl-1.4/egl-terminate-then-unbind-context.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/egl/spec/egl-1.4/egl-terminate-then-unbind-context.c b/tests/egl/spec/egl-1.4/egl-terminate-then-unbind-context.c
index 31f8d6a..a7e3f89 100644
--- a/tests/egl/spec/egl-1.4/egl-terminate-then-unbind-context.c
+++ b/tests/egl/spec/egl-1.4/egl-terminate-then-unbind-context.c
@@ -80,8 +80,7 @@ main(int argc, char **argv)
* creating any EGLSurface. To call eglMakeCurrent() without a surface
* requires EGL_KHR_surfaceless_context.
*/
- if (!piglit_is_egl_extension_supported(dpy, "EGL_KHR_surfaceless_context"))
- piglit_report_result(PIGLIT_SKIP);
+ piglit_require_egl_extension(dpy, "EGL_KHR_surfaceless_context");
ok = eglChooseConfig(dpy, NULL, &config, 1, &num_configs);
if (!ok)
--
1.8.5.3
More information about the Piglit
mailing list