MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CLHPP / testProgramCreateEmptyBinaries

Function testProgramCreateEmptyBinaries

tests/test_openclhpp.cpp:2448–2462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2446#endif
2447
2448void testProgramCreateEmptyBinaries(void)
2449{
2450#ifndef CL_HPP_ENABLE_EXCEPTIONS
2451 clCreateProgramWithBinary_StubWithCallback(clCreateProgramWithBinary_EmptyBinaries);
2452 clReleaseContext_ExpectAndReturn(make_context(1), CL_SUCCESS);
2453
2454 cl::Context context(make_context(1));
2455
2456 cl::vector<cl::Device> devices;
2457 cl::Program::Binaries binaries;
2458 cl::Program program(context, devices, binaries);
2459
2460 TEST_ASSERT_EQUAL(nullptr, program());
2461#endif
2462}
2463
2464#if CL_HPP_TARGET_OPENCL_VERSION >= 120
2465#ifndef CL_HPP_ENABLE_EXCEPTIONS

Callers

nothing calls this directly

Calls 1

make_contextFunction · 0.85

Tested by

no test coverage detected