[Piglit] [PATCH 2/2] s3tc-targeted: Execute every test case

Nanley Chery nanleychery at gmail.com
Fri Jul 21 21:54:54 UTC 2017


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



More information about the Piglit mailing list