aboutsummaryrefslogtreecommitdiff
path: root/tests/fbo
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-14 09:24:10 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 12:46:22 -0800
commit28f8c99183d3dcdee6b17104d85faa81ce66a377 (patch)
tree502543aa947ae38f449af18f5697247a11dada2b /tests/fbo
parent45649f3c14af569d8f3a837b20297dca0077ae99 (diff)
fbo-readpixels-depth-formats: Report subtest results.
v2: Leave previous printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/fbo')
-rw-r--r--tests/fbo/fbo-readpixels-depth-formats.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/fbo/fbo-readpixels-depth-formats.c b/tests/fbo/fbo-readpixels-depth-formats.c
index f271318c..25d97ebb 100644
--- a/tests/fbo/fbo-readpixels-depth-formats.c
+++ b/tests/fbo/fbo-readpixels-depth-formats.c
@@ -202,6 +202,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 +237,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: