diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-01-22 17:22:13 -0800 |
---|---|---|
committer | Fabian Bieler <fabianbieler@fastmail.fm> | 2018-02-05 19:44:17 +0100 |
commit | 69691ee70f08b371d8c4f95e2e990438d5231a46 (patch) | |
tree | 14671dc9d20476642e017cbe1ffe68ba6427fc4a /tests | |
parent | caa63ac9e0714f0029f713b35d896c3c064531dd (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.c | 6 |
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; } |