aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-01-17 22:49:39 -0800
committerVinson Lee <vlee@freedesktop.org>2013-01-18 22:58:59 -0800
commitd3d50ed4c72c848d1a9e19428bdb37ba8a7bd7d8 (patch)
treef89e683d6fb88c31caefcf9ebc24b0872a9feb1e
parentbb0422c7e85b3b69a79bcde1cab93a46242f69bc (diff)
attribute0: Check result of piglit_link_check_status.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/shaders/attribute0.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/shaders/attribute0.c b/tests/shaders/attribute0.c
index 0d50d17b..a7999f1f 100644
--- a/tests/shaders/attribute0.c
+++ b/tests/shaders/attribute0.c
@@ -77,6 +77,7 @@ piglit_init(int argc, char **argv)
{
GLuint vs;
GLuint fs;
+ GLboolean ok;
piglit_require_vertex_shader();
piglit_require_fragment_shader();
@@ -87,7 +88,9 @@ piglit_init(int argc, char **argv)
glBindAttribLocation(prog, 0, "vertex");
glLinkProgram(prog);
- piglit_link_check_status(prog);
+ ok = piglit_link_check_status(prog);
+ if (!ok)
+ piglit_report_result(PIGLIT_FAIL);
glUseProgram(prog);