aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-14 09:17:52 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 12:46:10 -0800
commitb34d8763d7414cde59d8cc64b1f6fb0d393e9d5f (patch)
treefdcb9d3757b90281c6997f73f234a8d737ee0d1e
parent125decb61727c71dbc2d553151f93b8077fa6f4f (diff)
downloadpiglit-b34d8763d7414cde59d8cc64b1f6fb0d393e9d5f.tar.gz
fbo-blending-formats: Report subtest results.
v2: Leave previous printfs in place, get the name for the enum. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/fbo/fbo-blending-formats.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/fbo/fbo-blending-formats.c b/tests/fbo/fbo-blending-formats.c
index 3dffa0e8..a25fbb42 100644
--- a/tests/fbo/fbo-blending-formats.c
+++ b/tests/fbo/fbo-blending-formats.c
@@ -266,7 +266,9 @@ static enum piglit_result test_format(const struct format_desc *format)
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 = %s)\n",
+ piglit_get_gl_enum_name(status));
+ piglit_report_subtest_result(PIGLIT_SKIP, format->name);
return PIGLIT_SKIP;
}
printf("\n");
@@ -327,6 +329,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 +381,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;
}