[Piglit] [PATCH] arb_tessellation_shader: Check piglit_link_check_status results.

Vinson Lee vlee at freedesktop.org
Sun Nov 29 23:46:23 PST 2015


Fixes Coverity "unchecked return value" defects.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_tessellation_shader/invalid-get-program-params.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/arb_tessellation_shader/invalid-get-program-params.c b/tests/spec/arb_tessellation_shader/invalid-get-program-params.c
index 4cbe29a..c3347d8 100644
--- a/tests/spec/arb_tessellation_shader/invalid-get-program-params.c
+++ b/tests/spec/arb_tessellation_shader/invalid-get-program-params.c
@@ -78,11 +78,11 @@ piglit_init(int argc, char **argv)
 
 	tcs_prog = glCreateShaderProgramv(GL_TESS_CONTROL_SHADER, 1,
 					  (const GLchar *const*)&tcs_source);
-	piglit_link_check_status(tcs_prog);
+	pass = piglit_link_check_status(tcs_prog) && pass;
 
 	tes_prog = glCreateShaderProgramv(GL_TESS_EVALUATION_SHADER, 1,
 					  (const GLchar *const*)&tes_source);
-	piglit_link_check_status(tes_prog);
+	pass = piglit_link_check_status(tes_prog) && pass;
 
 	for (i = 0; i < ARRAY_SIZE(tes_params); ++i ) {
 		pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
-- 
2.6.3



More information about the Piglit mailing list