diff options
-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; } |