diff options
author | Vinson Lee <vlee@freedesktop.org> | 2016-03-04 14:34:47 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2016-03-06 12:56:51 -0800 |
commit | 6149b5b707829ce872c7a0ce025c74b726e2a33d (patch) | |
tree | 33c8cb0b0fe6c9c93a51a5f5ee433c28a1d212dd | |
parent | 89fe7a365504a2a3e307b1c43971470ad29de57f (diff) |
glx-shader-sharing: Report failure instead of crash on assert.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
-rw-r--r-- | tests/glx/glx-shader-sharing.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/glx/glx-shader-sharing.c b/tests/glx/glx-shader-sharing.c index 1a022c09e..b8df9b4c8 100644 --- a/tests/glx/glx-shader-sharing.c +++ b/tests/glx/glx-shader-sharing.c @@ -102,7 +102,9 @@ draw(Display *dpy) frag_shader = piglit_compile_shader_text(GL_FRAGMENT_SHADER, frag_shader_text); program = piglit_link_simple_program(vert_shader, frag_shader); check_error(__LINE__); - assert(program); + if (!program) { + piglit_report_result(PIGLIT_FAIL); + } glUseProgram(program); check_error(__LINE__); |