aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-14 09:59:14 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 13:48:13 -0800
commit5b54e5e8985958a0d8394f9ee0e77eadf7a7f6c1 (patch)
tree04d703590d17940cd2e2c5866f8bc79e1bfa4298
parent83f87c9a64d7e16067f46855739627cc7d458edf (diff)
downloadpiglit-5b54e5e8985958a0d8394f9ee0e77eadf7a7f6c1.tar.gz
texwrap: Report subtest results.
v2: Leave printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/texturing/texwrap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/texturing/texwrap.c b/tests/texturing/texwrap.c
index d486f175..0a460d9e 100644
--- a/tests/texturing/texwrap.c
+++ b/tests/texturing/texwrap.c
@@ -1077,6 +1077,13 @@ static GLboolean test_format_npot_swizzle(const struct format_desc *format,
draw(format, npot, texture_proj);
pass = probe_pixels(format, npot, texswizzle);
piglit_present_results();
+
+ piglit_report_subtest_result(pass ? PIGLIT_PASS : PIGLIT_FAIL,
+ "%s%s%s%s%s", format->name,
+ npot ? ", NPOT" : "",
+ texswizzle ? ", swizzled" : "",
+ texture_proj ? ", projected" : "",
+ test_border_color ? ", border color only" : "");
return pass;
}