[Piglit] [PATCH 2/2] s3tc-targeted: Execute every test case
Dylan Baker
dylan at pnwbakers.com
Fri Jul 21 22:56:25 UTC 2017
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
Quoting Nanley Chery (2017-07-21 14:54:54)
> Continuing to run the tests after one fails provides helpful information
> when debugging.
>
> Suggested-by: Ian Romanick <idr at freedesktop.org>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
> tests/texturing/s3tc-targeted.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/tests/texturing/s3tc-targeted.c b/tests/texturing/s3tc-targeted.c
> index c8e3f4bde..b4553ceeb 100644
> --- a/tests/texturing/s3tc-targeted.c
> +++ b/tests/texturing/s3tc-targeted.c
> @@ -82,10 +82,10 @@ piglit_display(void)
> const uint8_t black_block[8] = { 0xFF, 0xFF, 0xFF, 0xFF, 0x03, };
> const uint8_t one_third_block[8] = { 0xFF, 0xFF, 0, 0, 0x03, };
>
> - const bool pass = TEST(RGB , black_block, 0x000F) &&
> - TEST(RGBA, black_block, 0x0000) &&
> - TEST(RGB , one_third_block, 0x555F) &&
> - TEST(RGBA, one_third_block, 0x555F);
> + bool pass = TEST(RGB , black_block, 0x000F);
> + pass = TEST(RGBA, black_block, 0x0000) && pass;
> + pass = TEST(RGB , one_third_block, 0x555F) && pass;
> + pass = TEST(RGBA, one_third_block, 0x555F) && pass;
> return pass ? PIGLIT_PASS : PIGLIT_FAIL;
> }
>
> --
> 2.13.3
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20170721/b730cbd8/attachment.sig>
More information about the Piglit
mailing list