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");