diff --git a/test_conformance/extensions/cl_khr_command_buffer/command_buffer_test_barrier.cpp b/test_conformance/extensions/cl_khr_command_buffer/command_buffer_test_barrier.cpp index 82ff16f0ec..10fd1d318b 100644 --- a/test_conformance/extensions/cl_khr_command_buffer/command_buffer_test_barrier.cpp +++ b/test_conformance/extensions/cl_khr_command_buffer/command_buffer_test_barrier.cpp @@ -93,6 +93,9 @@ struct BarrierWithWaitListKHR : public BasicCommandBufferTest 0, data_size(), 0, nullptr, nullptr); test_error(error, "clEnqueueFillBufferKHR failed"); + error = clFinish(queue); + test_error(error, "clFinish"); + error = clEnqueueCommandBufferKHR( 0, nullptr, out_of_order_command_buffer, 0, nullptr, &event); test_error(error, "clEnqueueCommandBufferKHR failed");