[Piglit] [PATCH 38/50] arb_sync: set KHR_no_error status
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Aug 10 15:22:38 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
tests/spec/arb_sync/ClientWaitSync-errors.c | 1 +
tests/spec/arb_sync/ClientWaitSync-timeout.c | 1 +
tests/spec/arb_sync/DeleteSync.c | 9 ++++++---
tests/spec/arb_sync/FenceSync-errors.c | 1 +
tests/spec/arb_sync/GetSynciv-errors.c | 1 +
tests/spec/arb_sync/IsSync.c | 1 +
tests/spec/arb_sync/WaitSync-errors.c | 1 +
tests/spec/arb_sync/repeat-wait.c | 1 +
tests/spec/arb_sync/sync-initialize.c | 1 +
tests/spec/arb_sync/timeout-zero.c | 1 +
10 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/tests/spec/arb_sync/ClientWaitSync-errors.c b/tests/spec/arb_sync/ClientWaitSync-errors.c
index add5af340..5f31098c6 100644
--- a/tests/spec/arb_sync/ClientWaitSync-errors.c
+++ b/tests/spec/arb_sync/ClientWaitSync-errors.c
@@ -40,6 +40,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_HAS_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/ClientWaitSync-timeout.c b/tests/spec/arb_sync/ClientWaitSync-timeout.c
index 4030a3fcc..41866fa67 100644
--- a/tests/spec/arb_sync/ClientWaitSync-timeout.c
+++ b/tests/spec/arb_sync/ClientWaitSync-timeout.c
@@ -36,6 +36,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
+ config.khr_no_error_support = PIGLIT_NO_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/DeleteSync.c b/tests/spec/arb_sync/DeleteSync.c
index 02ad0c3d2..d9cd49643 100644
--- a/tests/spec/arb_sync/DeleteSync.c
+++ b/tests/spec/arb_sync/DeleteSync.c
@@ -38,6 +38,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_NO_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
@@ -71,9 +72,11 @@ piglit_init(int argc, char **argv)
/* Check if sync was deleted */
pass = !glIsSync(sync) && pass;
- /* Test for unsuccessful function calls */
- glDeleteSync(invalid);
- pass = piglit_check_gl_error(GL_INVALID_VALUE) && pass;
+ if (!piglit_khr_no_error) {
+ /* Test for unsuccessful function calls */
+ glDeleteSync(invalid);
+ pass = piglit_check_gl_error(GL_INVALID_VALUE) && pass;
+ }
piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL);
}
diff --git a/tests/spec/arb_sync/FenceSync-errors.c b/tests/spec/arb_sync/FenceSync-errors.c
index c7addc175..ab8e797d6 100644
--- a/tests/spec/arb_sync/FenceSync-errors.c
+++ b/tests/spec/arb_sync/FenceSync-errors.c
@@ -39,6 +39,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_HAS_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/GetSynciv-errors.c b/tests/spec/arb_sync/GetSynciv-errors.c
index c75c08628..5a507f523 100644
--- a/tests/spec/arb_sync/GetSynciv-errors.c
+++ b/tests/spec/arb_sync/GetSynciv-errors.c
@@ -38,6 +38,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_HAS_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/IsSync.c b/tests/spec/arb_sync/IsSync.c
index fa8eb61c9..61292b7f5 100644
--- a/tests/spec/arb_sync/IsSync.c
+++ b/tests/spec/arb_sync/IsSync.c
@@ -40,6 +40,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_NO_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/WaitSync-errors.c b/tests/spec/arb_sync/WaitSync-errors.c
index b5bbb2c19..86a744448 100644
--- a/tests/spec/arb_sync/WaitSync-errors.c
+++ b/tests/spec/arb_sync/WaitSync-errors.c
@@ -38,6 +38,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_HAS_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/repeat-wait.c b/tests/spec/arb_sync/repeat-wait.c
index ac653bbc6..6580bef3a 100644
--- a/tests/spec/arb_sync/repeat-wait.c
+++ b/tests/spec/arb_sync/repeat-wait.c
@@ -50,6 +50,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.window_width = 10;
config.window_height = 10;
config.window_visual = PIGLIT_GL_VISUAL_RGBA | PIGLIT_GL_VISUAL_DOUBLE;
+ config.khr_no_error_support = PIGLIT_NO_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/sync-initialize.c b/tests/spec/arb_sync/sync-initialize.c
index 65646bb5e..a18a86696 100644
--- a/tests/spec/arb_sync/sync-initialize.c
+++ b/tests/spec/arb_sync/sync-initialize.c
@@ -43,6 +43,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.supports_gl_core_version = 31;
+ config.khr_no_error_support = PIGLIT_NO_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
diff --git a/tests/spec/arb_sync/timeout-zero.c b/tests/spec/arb_sync/timeout-zero.c
index 27259573b..4a1ca91d9 100644
--- a/tests/spec/arb_sync/timeout-zero.c
+++ b/tests/spec/arb_sync/timeout-zero.c
@@ -45,6 +45,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
config.window_width = 10;
config.window_height = 10;
config.window_visual = PIGLIT_GL_VISUAL_RGBA | PIGLIT_GL_VISUAL_DOUBLE;
+ config.khr_no_error_support = PIGLIT_NO_ERRORS;
PIGLIT_GL_TEST_CONFIG_END
--
2.14.0
More information about the Piglit
mailing list