[Piglit] [PATCH 03/19] mesa_pack_invert/readpixels: enumerate subtests

Dylan Baker dylan at pnwbakers.com
Mon Nov 19 21:23:29 UTC 2018


It's not immediately obvious whether this test is suitable for
piglit_run_selected_subtests, so just enumerate the subtests it has so
that the framework can catch crashes.
---
 tests/spec/mesa_pack_invert/readpixels.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/spec/mesa_pack_invert/readpixels.c b/tests/spec/mesa_pack_invert/readpixels.c
index e7194d0e2..5aec9cc95 100644
--- a/tests/spec/mesa_pack_invert/readpixels.c
+++ b/tests/spec/mesa_pack_invert/readpixels.c
@@ -207,4 +207,13 @@ void piglit_init(int argc, char **argv)
 	piglit_require_extension("GL_ARB_pixel_buffer_object");
 	piglit_require_extension("GL_MESA_pack_invert");
 	piglit_require_extension("GL_EXT_bgra");
+
+	const char * names[] = {
+		"non-PBO unorm BGRA",
+		"PBO unorm BGRA",
+		"non-PBO float RGBA",
+		"PBO float RGBA",
+		NULL,
+	};
+	piglit_register_subtests(names);
 }
-- 
2.19.1



More information about the Piglit mailing list