[Piglit] [PATCH 13/16] tests: always report subtest results for degenerate-prims
Fabian Bieler
fabianbieler at fastmail.fm
Mon Jan 29 00:22:23 UTC 2018
From: Dylan Baker <dylan at pnwbakers.com>
---
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 7ed609333..d2bb7d680 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;
}
--
2.15.1
More information about the Piglit
mailing list