From: Daniel Kurtz <[email protected]>

eglGetSyncAttribKHR() returns EGL_TRUE on success, thus "ok" will be true
on success.

Signed-off-by: Daniel Kurtz <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
---
 tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c 
b/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c
index 85175bb..c9e8e3a 100644
--- a/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c
+++ b/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c
@@ -352,7 +352,7 @@ test_eglCreateSyncKHR_default_attributes(void *test_data)
        }
 
        ok = peglGetSyncAttribKHR(g_dpy, sync, EGL_SYNC_TYPE_KHR, &sync_type);
-       if (ok) {
+       if (!ok) {
                piglit_loge("eglGetSyncAttribKHR(EGL_SYNC_TYPE_KHR) failed");
                result = PIGLIT_FAIL;
        }
-- 
2.1.0

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to