[Piglit] [PATCH 05/15] fbo-alphatest-formats: Report subtest results.

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


---
 tests/fbo/fbo-alphatest-formats.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/fbo/fbo-alphatest-formats.c b/tests/fbo/fbo-alphatest-formats.c
index a8d2453..c3f539a 100644
--- a/tests/fbo/fbo-alphatest-formats.c
+++ b/tests/fbo/fbo-alphatest-formats.c
@@ -176,12 +176,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);
@@ -251,6 +250,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;
 	}
 
@@ -311,6 +311,8 @@ 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