summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-01-22 17:22:13 -0800
committerFabian Bieler <fabianbieler@fastmail.fm>2018-02-05 19:44:17 +0100
commit69691ee70f08b371d8c4f95e2e990438d5231a46 (patch)
tree14671dc9d20476642e017cbe1ffe68ba6427fc4a /tests
parentcaa63ac9e0714f0029f713b35d896c3c064531dd (diff)
tests: always report subtest results for degenerate-prims
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/general/degenerate-prims.c6
1 files 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;
}