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

Submitted by apinheiro on Feb. 20, 2019, 4:06 p.m.

Details

Message ID 20190220160614.22983-3-apinheiro@igalia.com
State New
Headers show
Series "arb_enhanced_layouts: minor clean-up and one bugfix" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

apinheiro Feb. 20, 2019, 4:06 p.m.
From: Antia Puentes <apuentes@igalia.com>

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

Patch hide | download patch | download mbox

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,