[Piglit] [PATCH 15/15] texwrap: Report subtest results.

Eric Anholt eric at anholt.net
Mon Jan 14 10:55:42 PST 2013


---
 tests/texturing/texwrap.c |   13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/texturing/texwrap.c b/tests/texturing/texwrap.c
index d486f17..645da1b 100644
--- a/tests/texturing/texwrap.c
+++ b/tests/texturing/texwrap.c
@@ -1068,15 +1068,16 @@ static GLboolean test_format_npot_swizzle(const struct format_desc *format,
 		update_swizzle(texswizzle);
 	}
 
-	printf("Testing %s%s%s%s%s\n", format->name,
-	       npot ? ", NPOT" : "",
-	       texswizzle ? ", swizzled" : "",
-	       texture_proj ? ", projected" : "",
-	       test_border_color ? ", border color only" : "");
-
 	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;
 }
 
-- 
1.7.10.4



More information about the Piglit mailing list