aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-14 09:19:54 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 12:46:18 -0800
commit45649f3c14af569d8f3a837b20297dca0077ae99 (patch)
tree79477f7bbfbfc4340585a85a721a03bd6c99a11b
parentb34d8763d7414cde59d8cc64b1f6fb0d393e9d5f (diff)
downloadpiglit-45649f3c14af569d8f3a837b20297dca0077ae99.tar.gz
fbo-alphatest-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-alphatest-formats.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/fbo/fbo-alphatest-formats.c b/tests/fbo/fbo-alphatest-formats.c
index a8d24539..30a71643 100644
--- a/tests/fbo/fbo-alphatest-formats.c
+++ b/tests/fbo/fbo-alphatest-formats.c
@@ -178,7 +178,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");
@@ -251,6 +253,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 +314,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;
}