[Piglit] [PATCH 1/2] attribute0: Check result of piglit_link_check_status.
Vinson Lee
vlee at freedesktop.org
Thu Jan 17 22:58:39 PST 2013
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/shaders/attribute0.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/shaders/attribute0.c b/tests/shaders/attribute0.c
index 0d50d17..a7999f1 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);
--
1.8.1
More information about the Piglit
mailing list