[Piglit] [PATCH 2/3] egl: eglQueryDevicesEXT returns EGL_TRUE on success

James Jones jajones at nvidia.com
Wed Sep 7 20:27:27 UTC 2016


This is the case even when <devices> is NULL or
<maxDevices> < <numDevices>.  The only
error conditions mentioned in the spec are for
<numDevices> being NULL, or <maxDevices> <= 0 when
<devices> != NULL.

Signed-off-by: James Jones <jajones at nvidia.com>
---
 tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c b/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c
index 0d29a6b..0b524d5 100644
--- a/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c
+++ b/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c
@@ -57,7 +57,7 @@ main(void)
 		piglit_report_result(PIGLIT_FAIL);
 	}
 
-	if (queryDevices(0, NULL, &numdevs)) {
+	if (!queryDevices(0, NULL, &numdevs)) {
 		printf("Failed to get device count\n");
 		piglit_report_result(PIGLIT_FAIL);
 	}
-- 
1.9.1



More information about the Piglit mailing list