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

Jan Vesely jano.vesely at gmail.com
Fri Apr 29 02:02:20 UTC 2016


Fixes Unknown status "Unknown result" python exception.

Signed-off-by: Jan Vesely <jano.vesely at gmail.com>
---
 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.
 	 */
-- 
2.7.4



More information about the Piglit mailing list