[Piglit] [PATCH 1/2] attribute0: Check result of piglit_link_check_status.
Brian Paul
brianp at vmware.com
Fri Jan 18 07:11:21 PST 2013
On 01/17/2013 11:58 PM, Vinson Lee wrote:
> 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);
>
For both:
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list