[Piglit] [PATCH] arb_es2_compatibility: Check piglit_link_check_status result.
Vinson Lee
vlee at freedesktop.org
Mon Nov 30 21:37:37 PST 2015
Fixes Coverity "unchecked return value" defect.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
.../arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c
index b5c476e..ae5830d 100644
--- a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c
+++ b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c
@@ -70,7 +70,7 @@ draw(const float *color, float x_offset)
glBindAttribLocation(prog, 0, "vertex");
glLinkProgram(prog);
- piglit_link_check_status(prog);
+ assert(piglit_link_check_status(prog));
glUseProgram(prog);
color_location = glGetUniformLocation(prog, "color");
--
2.6.3
More information about the Piglit
mailing list