[Piglit] [PATCH 04/15] fbo-blending-formats: Report subtest results.

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


---
 tests/fbo/fbo-blending-formats.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/fbo/fbo-blending-formats.c b/tests/fbo/fbo-blending-formats.c
index 3dffa0e..4b03591 100644
--- a/tests/fbo/fbo-blending-formats.c
+++ b/tests/fbo/fbo-blending-formats.c
@@ -264,12 +264,11 @@ static enum piglit_result test_format(const struct format_desc *format)
 	assert(glGetError() == 0);
 
 	status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT);
-	printf("Testing %s", format->name);
 	if (status != GL_FRAMEBUFFER_COMPLETE_EXT) {
-		printf(" - fbo incomplete (status = 0x%04x)\n", status);
+		printf("fbo incomplete (status = 0x%04x)\n", status);
+		piglit_report_subtest_result(PIGLIT_SKIP, format->name);
 		return PIGLIT_SKIP;
 	}
-        printf("\n");
 
 	glClearColor(0.0, 0.0, 0.0, 0.0);
 	glClear(GL_COLOR_BUFFER_BIT);
@@ -327,6 +326,7 @@ static enum piglit_result test_format(const struct format_desc *format)
 
 	if (!pass) {
 		piglit_present_results();
+		piglit_report_subtest_result(PIGLIT_FAIL, format->name);
 		return PIGLIT_FAIL;
 	}
 
@@ -378,6 +378,9 @@ static enum piglit_result test_format(const struct format_desc *format)
 
 	piglit_present_results();
 
+	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