diff options
author | Brian Paul <brianp@vmware.com> | 2018-02-13 14:22:49 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2018-02-14 08:51:20 -0700 |
commit | 4210d072f1a40fe06c6ca46e985871a384cca514 (patch) | |
tree | 0655f9ee811b9ce1f275390ecf2fc0f78214d8ae /tests | |
parent | 9780d6f2bb1a2391d3396b255628c3d1244458cf (diff) |
degenerate-prims: fix incorrect return value from test_prim()
The function is supposed to return a piglit_result, not true/false.
Fixes incorrect 'fail' results.
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/general/degenerate-prims.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/general/degenerate-prims.c b/tests/general/degenerate-prims.c index 0eed99ca1..3001d34e5 100644 --- a/tests/general/degenerate-prims.c +++ b/tests/general/degenerate-prims.c @@ -72,7 +72,7 @@ test_prim(void *_data) piglit_report_subtest_result(pass ? PIGLIT_PASS : PIGLIT_FAIL, "Primitive: %s", piglit_get_prim_name(data->prim)); - return pass; + return pass ? PIGLIT_PASS : PIGLIT_FAIL; } |