[Piglit] [PATCH 06/15] fbo-readpixels-depth-formats: Report subtest results.
Eric Anholt
eric at anholt.net
Mon Jan 14 10:55:33 PST 2013
---
tests/fbo/fbo-readpixels-depth-formats.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/fbo/fbo-readpixels-depth-formats.c b/tests/fbo/fbo-readpixels-depth-formats.c
index f271318..5021ce4 100644
--- a/tests/fbo/fbo-readpixels-depth-formats.c
+++ b/tests/fbo/fbo-readpixels-depth-formats.c
@@ -181,8 +181,6 @@ test_with_format(GLenum internal_format, const char *name)
GLuint values[BUF_WIDTH * BUF_HEIGHT];
int i;
- printf("testing %s:\n", name);
-
glGenFramebuffersEXT(1, &fb);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fb);
assert(glGetError() == 0);
@@ -202,6 +200,7 @@ test_with_format(GLenum internal_format, const char *name)
status = glCheckFramebufferStatusEXT (GL_FRAMEBUFFER_EXT);
if (status != GL_FRAMEBUFFER_COMPLETE_EXT) {
fprintf(stderr, "framebuffer incomplete\n");
+ piglit_report_subtest_result(PIGLIT_SKIP, name);
goto done;
}
@@ -236,11 +235,12 @@ test_with_format(GLenum internal_format, const char *name)
}
- if (format_passed) {
- printf(" %s: passed\n", read_formats[i].name);
- } else {
- pass = false;
- }
+ piglit_report_subtest_result((format_passed ?
+ PIGLIT_PASS : PIGLIT_FAIL),
+ "%s/%s",
+ name,
+ read_formats[i].name);
+ pass = format_passed && pass;
}
done:
--
1.7.10.4
More information about the Piglit
mailing list