diff options
Diffstat (limited to 'tests/egl/spec/egl_khr_create_context/invalid-flag-gles.c')
-rw-r--r-- | tests/egl/spec/egl_khr_create_context/invalid-flag-gles.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/egl/spec/egl_khr_create_context/invalid-flag-gles.c b/tests/egl/spec/egl_khr_create_context/invalid-flag-gles.c index 3618a918..b12db204 100644 --- a/tests/egl/spec/egl_khr_create_context/invalid-flag-gles.c +++ b/tests/egl/spec/egl_khr_create_context/invalid-flag-gles.c @@ -47,7 +47,8 @@ static bool try_flag(uint32_t flag) * 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; } |