| 4209 | } |
| 4210 | |
| 4211 | static cl_program clLinkProgram_testLinkProgram(cl_context context, |
| 4212 | cl_uint num_devices, |
| 4213 | const cl_device_id * device_list, |
| 4214 | const char * options, |
| 4215 | cl_uint num_input_programs, |
| 4216 | const cl_program * input_programs, |
| 4217 | void (CL_CALLBACK * pfn_notify)(cl_program program, void * user_data), |
| 4218 | void * user_data, |
| 4219 | cl_int * errcode_ret, |
| 4220 | int /*num_calls*/) |
| 4221 | { |
| 4222 | TEST_ASSERT_EQUAL_PTR(context, make_context(0)); |
| 4223 | TEST_ASSERT_EQUAL(num_devices, 0); |
| 4224 | TEST_ASSERT_EQUAL(device_list, nullptr); |
| 4225 | if (options) { |
| 4226 | TEST_ASSERT_EQUAL_STRING(options, "-cl-program-link-options"); |
| 4227 | } |
| 4228 | TEST_ASSERT_NOT_EQUAL(num_input_programs, 0); |
| 4229 | for (int i=0; i<(int)num_input_programs; i++) |
| 4230 | TEST_ASSERT_EQUAL_PTR(input_programs[i], make_program(i)); |
| 4231 | TEST_ASSERT_EQUAL(pfn_notify, nullptr); |
| 4232 | TEST_ASSERT_EQUAL(user_data, nullptr); |
| 4233 | |
| 4234 | *errcode_ret = CL_SUCCESS; |
| 4235 | return make_program(0); |
| 4236 | } |
| 4237 | |
| 4238 | void testLinkProgram(void) |
| 4239 | { |
nothing calls this directly
no test coverage detected