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

Function testProgramCreateEmptySources

tests/test_openclhpp.cpp:2405–2418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2403#endif
2404
2405void testProgramCreateEmptySources(void)
2406{
2407#ifndef CL_HPP_ENABLE_EXCEPTIONS
2408 clCreateProgramWithSource_StubWithCallback(clCreateProgramWithSource_EmptySource);
2409 clReleaseContext_ExpectAndReturn(make_context(1), CL_SUCCESS);
2410
2411 cl::Context context(make_context(1));
2412
2413 cl::Program::Sources sources;
2414 cl::Program program(context, sources);
2415
2416 TEST_ASSERT_EQUAL(nullptr, program());
2417#endif
2418}
2419
2420#ifndef CL_HPP_ENABLE_EXCEPTIONS
2421static cl_program clCreateProgramWithBinary_EmptyBinaries(

Callers

nothing calls this directly

Calls 1

make_contextFunction · 0.85

Tested by

no test coverage detected