[Piglit] [PATCH] arb_separate_shader_objects: Check piglit_link_check_status result.

Vinson Lee vlee at freedesktop.org
Thu Apr 20 22:10:28 UTC 2017


Fix Coverity unchecked return value defect.

CID: 743618
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 .../arb_separate_shader_objects/ActiveShaderProgram-invalid-program.c   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_separate_shader_objects/ActiveShaderProgram-invalid-program.c b/tests/spec/arb_separate_shader_objects/ActiveShaderProgram-invalid-program.c
index 85eae229ea20..c47b730e9ae8 100644
--- a/tests/spec/arb_separate_shader_objects/ActiveShaderProgram-invalid-program.c
+++ b/tests/spec/arb_separate_shader_objects/ActiveShaderProgram-invalid-program.c
@@ -83,7 +83,7 @@ piglit_init(int argc, char **argv)
 	(void)!asprintf(&source, vs_code_template, glsl_version);
 	vs_prog = glCreateShaderProgramv(GL_VERTEX_SHADER, 1,
 					 (const GLchar *const *) &source);
-	piglit_link_check_status(vs_prog);
+	pass = piglit_link_check_status(vs_prog) && pass;
 
 	/* First, make a valid program active.
 	 */
-- 
2.9.3



More information about the Piglit mailing list