[Piglit] [PATCH 2/2] glsl-fs-color-matrix: Check result of piglit_link_check_status.

Vinson Lee vlee at freedesktop.org
Thu Jan 17 22:58:40 PST 2013


Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/shaders/glsl-fs-color-matrix.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/shaders/glsl-fs-color-matrix.c b/tests/shaders/glsl-fs-color-matrix.c
index 53f32c0..302ce63 100644
--- a/tests/shaders/glsl-fs-color-matrix.c
+++ b/tests/shaders/glsl-fs-color-matrix.c
@@ -130,6 +130,7 @@ piglit_init(int argc, char **argv)
 	GLuint vs;
 	GLuint fs;
 	GLint loc;
+	GLboolean ok;
 
 	piglit_require_GLSL();
 
@@ -141,7 +142,9 @@ piglit_init(int argc, char **argv)
 	glBindAttribLocation(prog, 1, "textureCoord");
 
 	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