Continuing to run the tests after one fails provides helpful information
when debugging.

Suggested-by: Ian Romanick <i...@freedesktop.org>
Signed-off-by: Nanley Chery <nanley.g.ch...@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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to