[Piglit] [PATCH 2/3] arb_enhanced_layouts: Fix error in subtest result reporting

Alejandro PiƱeiro apinheiro at igalia.com
Wed Feb 20 16:06:13 UTC 2019


From: Antia Puentes <apuentes at igalia.com>

---
 .../arb_enhanced_layouts/transform-feedback-layout-query-api.c  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_enhanced_layouts/transform-feedback-layout-query-api.c b/tests/spec/arb_enhanced_layouts/transform-feedback-layout-query-api.c
index 44d1aef9a..05175b588 100644
--- a/tests/spec/arb_enhanced_layouts/transform-feedback-layout-query-api.c
+++ b/tests/spec/arb_enhanced_layouts/transform-feedback-layout-query-api.c
@@ -139,7 +139,7 @@ piglit_init(int argc, char **argv)
 		max_active = false;
 	}
 
-	piglit_report_subtest_result(active_res ? PIGLIT_PASS : PIGLIT_FAIL,
+	piglit_report_subtest_result(max_active ? PIGLIT_PASS : PIGLIT_FAIL,
 			"Query MAX_NUM_ACTIVE_VARIABLES");
 
 	GLenum props[] = {GL_BUFFER_BINDING, GL_NUM_ACTIVE_VARIABLES,
-- 
2.19.1



More information about the Piglit mailing list