[Piglit] [PATCH 3/3] arb_cull_distance: correction of result interpretation

Sebastian Olender sebastian.d.olender at intel.com
Tue Jan 10 14:38:56 UTC 2017


Signed-off-by: Sebastian Olender <sebastian.d.olender at intel.com>
---
 tests/spec/arb_cull_distance/exceed-limits.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/spec/arb_cull_distance/exceed-limits.c b/tests/spec/arb_cull_distance/exceed-limits.c
index 10fecb9..e68ad73 100644
--- a/tests/spec/arb_cull_distance/exceed-limits.c
+++ b/tests/spec/arb_cull_distance/exceed-limits.c
@@ -58,8 +58,8 @@ piglit_init(int argc, char **argv)
 	GLint max_clip_distances;
 	GLint max_cull_distances;
 	GLint max_combined_clip_and_cull_distances;
-	GLint clip_distances;
-	GLint cull_distances;
+	GLint clip_distances = 0;
+	GLint cull_distances = 0;
 	char *use_cull = "", *use_clip = "";
 
 	glGetIntegerv(GL_MAX_CLIP_DISTANCES, &max_clip_distances);
@@ -104,7 +104,7 @@ piglit_init(int argc, char **argv)
 
 	glLinkProgram(prog);
 	if (!piglit_link_check_status(prog))
-		piglit_report_result(PIGLIT_PASS);
+		piglit_report_result(PIGLIT_FAIL);
 
-	piglit_report_result(PIGLIT_FAIL);
+	piglit_report_result(PIGLIT_PASS);
 }
-- 
2.7.4



More information about the Piglit mailing list