diff --git a/tests/test_openclhpp.cpp b/tests/test_openclhpp.cpp index cb112b5c..8716ed2a 100644 --- a/tests/test_openclhpp.cpp +++ b/tests/test_openclhpp.cpp @@ -4472,4 +4472,29 @@ void testTemplateGetImageRequirementsInfo() void testTemplateGetImageRequirementsInfo() {} #endif // cl_ext_image_requirements_info +#if CL_HPP_TARGET_OPENCL_VERSION >= 120 +cl_int clEnqueueBarrierWithWaitList_testEnqueueBarrierWithWaitList( + cl_command_queue command_queue, cl_uint num_events_in_wait_list, + const cl_event *event_wait_list, cl_event *event, int num_calls) { + TEST_ASSERT_EQUAL_PTR(make_command_queue(0), command_queue); + TEST_ASSERT_EQUAL(0, num_events_in_wait_list); + TEST_ASSERT_EQUAL_PTR(nullptr, event_wait_list); + TEST_ASSERT_EQUAL_PTR(nullptr, event); + TEST_ASSERT_EQUAL(0, num_calls); + return CL_SUCCESS; +} + +void testEnqueueBarrierWithWaitList() { + cl_int ret = CL_DEVICE_NOT_FOUND; + const cl::vector *events = nullptr; + cl::Event *event = nullptr; + + clEnqueueBarrierWithWaitList_StubWithCallback( + clEnqueueBarrierWithWaitList_testEnqueueBarrierWithWaitList); + ret = commandQueuePool[0].enqueueBarrierWithWaitList(events, event); + TEST_ASSERT_EQUAL(CL_SUCCESS, ret); +} +#else +void testEnqueueBarrierWithWaitList() {} +#endif // CL_HPP_TARGET_OPENCL_VERSION >= 120 } // extern "C"