[Piglit] [PATCH 11/15] fbo-clear-formats: Report subtest results.

Eric Anholt eric at anholt.net
Mon Jan 14 10:55:38 PST 2013


---
 tests/fbo/fbo-clear-formats.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/fbo/fbo-clear-formats.c b/tests/fbo/fbo-clear-formats.c
index 14dd5a1..8b4b3c3 100644
--- a/tests/fbo/fbo-clear-formats.c
+++ b/tests/fbo/fbo-clear-formats.c
@@ -503,19 +503,18 @@ test_format(const struct format_desc *format)
 	int level;
 	GLboolean pass = GL_TRUE;
 
-	printf("Testing %s", format->name);
-
 	if (clear_stencil && format->base_internal_format != GL_DEPTH_STENCIL) {
-		printf(" - no stencil.\n");
+		printf("Skipping stencil-only %s.\n", format->name);
 		return PIGLIT_SKIP;
 	}
 
 	tex = create_tex(format->internalformat, format->base_internal_format);
 	if (tex == 0) {
-		printf(" - FBO incomplete\n");
+		piglit_report_subtest_result(PIGLIT_SKIP,
+					     "%s (fbo incomplete)",
+					     format->name);
 		return PIGLIT_SKIP;
 	}
-	printf("\n");
 
 	if (clear_stencil) {
 		glClearStencil(0x0);
@@ -550,6 +549,8 @@ test_format(const struct format_desc *format)
 
 	glDeleteTextures(1, &tex);
 
+	piglit_report_subtest_result(pass ? PIGLIT_PASS : PIGLIT_FAIL,
+				     format->name);
 	return pass ? PIGLIT_PASS : PIGLIT_FAIL;
 }
 
-- 
1.7.10.4



More information about the Piglit mailing list