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 <jajo...@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

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to