[Piglit] [PATCH 1/2] arb_transform_feedback_overflow_query-basic: fix subtest selection

Nicolai Hähnle nhaehnle at gmail.com
Mon Jul 31 09:28:35 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

---
 tests/spec/arb_transform_feedback_overflow_query/basic.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/spec/arb_transform_feedback_overflow_query/basic.c b/tests/spec/arb_transform_feedback_overflow_query/basic.c
index 0ca0afe..72b32fb 100644
--- a/tests/spec/arb_transform_feedback_overflow_query/basic.c
+++ b/tests/spec/arb_transform_feedback_overflow_query/basic.c
@@ -34,10 +34,13 @@
 
 #define BUFFER_OFFSET(i) ((void *)((char *)NULL + i))
 
+const struct piglit_subtest overflow_query_subtests[];
+
 PIGLIT_GL_TEST_CONFIG_BEGIN
 
 	config.supports_gl_compat_version = 32;
 	config.supports_gl_core_version = 32;
+	config.subtests = overflow_query_subtests;
 
 PIGLIT_GL_TEST_CONFIG_END
 
@@ -576,8 +579,7 @@ piglit_init(int argc, char **argv)
 	/* Strip common piglit args. */
 	piglit_strip_arg(&argc, argv, "-fbo");
 	piglit_strip_arg(&argc, argv, "-auto");
-	piglit_parse_subtest_args(&argc, argv, subtests, &selected_subtests,
-				  &num_selected_subtests);
+	num_selected_subtests = piglit_get_selected_tests(&selected_subtests);
 
 	if (argc > 1) {
 		fprintf(stderr, "usage error\n");
-- 
2.9.3



More information about the Piglit mailing list