[3/5] egl: Use piglit_require_egl_extension() when appropriate

Submitted by Chad Versace on Feb. 9, 2014, 9:31 p.m.

Details

Message ID 1391981476-24780-4-git-send-email-chad.versace@linux.intel.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Chad Versace Feb. 9, 2014, 9:31 p.m.
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@linux.intel.com>
---
 tests/egl/spec/egl-1.4/egl-terminate-then-unbind-context.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

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)