From 7db81be9a0c38061a5e0864a189f9a73c6e8d68a Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Thu, 16 Jul 2020 12:19:37 +0200 Subject: [PATCH] kernelHelpers - add error checking and return if failed --- test_common/harness/kernelHelpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_common/harness/kernelHelpers.cpp b/test_common/harness/kernelHelpers.cpp index 91ed3950..bfe7f3aa 100644 --- a/test_common/harness/kernelHelpers.cpp +++ b/test_common/harness/kernelHelpers.cpp @@ -675,9 +675,9 @@ static int create_single_kernel_helper_create_program_offline(cl_context context cl_platform_id platform; error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM, sizeof(cl_platform_id), &platform, NULL); - print_error(error, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed"); - clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL; + test_error(error, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed"); + clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL; clCreateProgramWithILKHR = (clCreateProgramWithILKHR_fn) clGetExtensionFunctionAddressForPlatform( platform, "clCreateProgramWithILKHR");