[Piglit] [PATCH 1/9] egl_ext_device_query: check for eglQueryDeviceStringEXT EGL_BAD_DEVICE_EXT
Emil Velikov
emil.l.velikov at gmail.com
Fri Aug 3 12:46:29 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
The function returns EGL_BAD_DEVICE_EXT when an invalid device is used.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c | 4 ++++
1 file changed, 4 insertions(+)
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 d6f171dbb..0a12b2a06 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
@@ -99,6 +99,10 @@ main(void)
if (!piglit_check_egl_error(EGL_BAD_PARAMETER))
piglit_report_result(PIGLIT_FAIL);
+ devstring = queryDeviceString(EGL_NO_DEVICE_EXT, EGL_EXTENSIONS);
+ if (!piglit_check_egl_error(EGL_BAD_DEVICE_EXT))
+ piglit_report_result(PIGLIT_FAIL);
+
devstring = queryDeviceString(device, EGL_EXTENSIONS);
if (devstring == NULL) {
printf("Empty device extension string\n");
--
2.18.0
More information about the Piglit
mailing list