[Piglit] [PATCH 10/15] tests/fbo-storage-formats: print subtest result for skip too

Dylan Baker dylan at pnwbakers.com
Tue Jan 23 01:22:11 UTC 2018


Because we always want to have the same number of subtests printed, or
they'll show up as "NOTRUN" instead of "SKIP" in the summary.

Signed-off-by: Dylan Baker <dylan.c.baker at intel.com>
---
 tests/fbo/fbo-storage-formats.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
index 9cf8c67..7f13684 100644
--- a/tests/fbo/fbo-storage-formats.c
+++ b/tests/fbo/fbo-storage-formats.c
@@ -190,8 +190,10 @@ test(void)
 	for (i = 0; i < ARRAY_SIZE(formats); i++) {
 		const char *name = piglit_get_gl_enum_name(formats[i].format);
 
-		if (!have_extension[formats[i].extension])
+		if (!have_extension[formats[i].extension]) {
+			piglit_report_subtest_result(PIGLIT_SKIP, "%s", name);
 			continue;
+		}
 
 		glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, formats[i].format,
 					 piglit_width, piglit_height);
-- 
git-series 0.9.1


More information about the Piglit mailing list