diff options
Diffstat (limited to 'tests/egl/spec/egl_khr_create_context/invalid-attribute-gl.c')
-rw-r--r-- | tests/egl/spec/egl_khr_create_context/invalid-attribute-gl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/egl/spec/egl_khr_create_context/invalid-attribute-gl.c b/tests/egl/spec/egl_khr_create_context/invalid-attribute-gl.c index b99dee8c..d1c99ab0 100644 --- a/tests/egl/spec/egl_khr_create_context/invalid-attribute-gl.c +++ b/tests/egl/spec/egl_khr_create_context/invalid-attribute-gl.c @@ -47,7 +47,8 @@ static bool try_attribute(int attribute) * recognized (including unrecognized bits in bitmask attributes), * then an EGL_BAD_ATTRIBUTE error is generated." */ - piglit_expect_egl_error(EGL_BAD_ATTRIBUTE, PIGLIT_FAIL); + if (!piglit_check_egl_error(EGL_BAD_ATTRIBUTE)) + piglit_report_result(PIGLIT_FAIL); return pass; } |