[Piglit] [PATCH 4/9] egl_ext_device_query: return PIGLIT_WARN when eglGetDisplay fails

Emil Velikov emil.l.velikov at gmail.com
Fri Aug 3 12:46:32 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

In the unlikely case that the function fails, we want some feedback
about the issue. It's not a failure per-se, but we don't want to
silently continue.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c b/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
index 45abe9801..a6f5fa815 100644
--- a/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
+++ b/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
@@ -64,7 +64,7 @@ main(void)
 	dpy = eglGetDisplay(NULL);
 	if (!dpy) {
 		printf("failed to get EGLDisplay\n");
-		piglit_report_result(PIGLIT_SKIP);
+		piglit_report_result(PIGLIT_WARN);
 	}
 
 	queryDisplayAttrib(dpy, EGL_DEVICE_EXT, (EGLAttrib *)&device);
-- 
2.18.0



More information about the Piglit mailing list