[Piglit] [PATCH 12/15] tests: always report subtest results for degenerate-prims
Dylan Baker
dylan at pnwbakers.com
Tue Jan 23 01:22:13 UTC 2018
---
tests/general/degenerate-prims.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/general/degenerate-prims.c b/tests/general/degenerate-prims.c
index 7ed6093..d2bb7d6 100644
--- a/tests/general/degenerate-prims.c
+++ b/tests/general/degenerate-prims.c
@@ -63,10 +63,8 @@ test_prim(GLenum prim, unsigned numVerts, const void *verts)
piglit_present_results();
- if (!pass) {
- piglit_report_subtest_result(PIGLIT_FAIL, "Primitive: %s",
- piglit_get_prim_name(prim));
- }
+ piglit_report_subtest_result(pass ? PIGLIT_PASS : PIGLIT_FAIL,
+ "Primitive: %s", piglit_get_prim_name(prim));
return pass;
}
--
git-series 0.9.1
More information about the Piglit
mailing list