[Piglit] [PATCH] cl: Initialize result variable.

Serge Martin edb+piglit at sigluy.net
Fri Apr 29 12:32:58 UTC 2016


On Thursday 28 April 2016 22:02:20 Jan Vesely wrote:
> Fixes Unknown status "Unknown result" python exception.
> 
> Signed-off-by: Jan Vesely <jano.vesely at gmail.com>

Reviewed-by Serge Martin <edb+piglit at sigluy.net>

> ---
>  tests/cl/api/set-kernel-arg.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/cl/api/set-kernel-arg.c b/tests/cl/api/set-kernel-arg.c
> index fb77059..0d476e3 100644
> --- a/tests/cl/api/set-kernel-arg.c
> +++ b/tests/cl/api/set-kernel-arg.c
> @@ -200,7 +200,7 @@ piglit_cl_test(const int argc,
>  	     "Set kernel argument for buffer which is NULL");
> 
>  	/*** Errors ***/
> -	enum piglit_result input_check_result;
> +	enum piglit_result input_check_result = PIGLIT_PASS;
>  	/*
>  	 * CL_INVALID_KERNEL if kernel is not a valid kernel object.
>  	 */



More information about the Piglit mailing list