[Piglit] [PATCH] sso: Check piglit_link_check_status return value.

Vinson Lee vlee at freedesktop.org
Tue Nov 17 00:23:45 PST 2015


Fixes Coverity "unchecked return value" defect.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_separate_shader_objects/active-sampler-conflict.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_separate_shader_objects/active-sampler-conflict.c b/tests/spec/arb_separate_shader_objects/active-sampler-conflict.c
index 0a91f49..1c94b43 100644
--- a/tests/spec/arb_separate_shader_objects/active-sampler-conflict.c
+++ b/tests/spec/arb_separate_shader_objects/active-sampler-conflict.c
@@ -124,7 +124,7 @@ setup_program(GLuint *prog, GLuint *pipe, GLuint *vao,
 
 	*prog = glCreateShaderProgramv(GL_FRAGMENT_SHADER, 1,
 				      (const GLchar *const *) fs_code);
-	piglit_link_check_status(*prog);
+	pass = piglit_link_check_status(*prog) && pass;
 
 	glGenProgramPipelines(1, pipe);
 	glUseProgramStages(*pipe,
-- 
2.6.3



More information about the Piglit mailing list