[Piglit] [PATCH 2/5] piglit-framework-gl: skip tests incompatible with KHR_no_error
Timothy Arceri
tarceri at itsqueeze.com
Fri May 12 04:47:47 UTC 2017
This skips tests marked as not being error free and also tests
with an unknown error status (this is the default setting).
---
tests/util/piglit-framework-gl.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tests/util/piglit-framework-gl.c b/tests/util/piglit-framework-gl.c
index 3bd7b7b..ecb1401 100644
--- a/tests/util/piglit-framework-gl.c
+++ b/tests/util/piglit-framework-gl.c
@@ -152,20 +152,36 @@ process_args(int *argc, char *argv[], unsigned *force_samples,
*/
for (i = j + 1; i < *argc; i++) {
argv[i - 2] = argv[i];
}
*argc -= 2;
j -= 2;
} else if (!strncmp(argv[j], "-samples=", 9)) {
*force_samples = atoi(argv[j]+9);
delete_arg(argv, *argc, j--);
*argc -= 1;
+ } else if (!strcmp(argv[j], "-khr_no_error")) {
+ delete_arg(argv, *argc, j--);
+ *argc -= 1;
+ if (config->khr_no_error_support ==
+ PIGLIT_UNKNOWN_ERROR_STATUS) {
+ fprintf(stderr,
+ "khr_no_error_support unknown "
+ "skipping test!\n");
+ piglit_report_result(PIGLIT_SKIP);
+ } else if (config->khr_no_error_support ==
+ PIGLIT_HAS_ERRORS) {
+ piglit_report_result(PIGLIT_SKIP);
+ } else {
+ assert(config->khr_no_error_support ==
+ PIGLIT_NO_ERRORS);
+ }
}
}
}
void
piglit_gl_process_args(int *argc, char *argv[],
struct piglit_gl_test_config *config)
{
unsigned force_samples = 0;
--
2.9.3
More information about the Piglit
mailing list