diff --git a/test_conformance/extensions/cl_khr_command_buffer/command_buffer_event_sync.cpp b/test_conformance/extensions/cl_khr_command_buffer/command_buffer_event_sync.cpp index 6ef26bb9fa..afbe813442 100644 --- a/test_conformance/extensions/cl_khr_command_buffer/command_buffer_event_sync.cpp +++ b/test_conformance/extensions/cl_khr_command_buffer/command_buffer_event_sync.cpp @@ -18,6 +18,8 @@ #include "procs.h" #include +#include +#include //-------------------------------------------------------------------------- enum class EventMode @@ -416,6 +418,11 @@ struct CommandBufferEventSync : public BasicCommandBufferTest error = clFinish(queue); test_error(error, "clFinish failed"); + for (unsigned i = 0; i < 30; ++i) { + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + if (confirmation) break; + } + // verify the result if (!confirmation) { @@ -763,6 +770,11 @@ struct CommandBufferEventSync : public BasicCommandBufferTest error = clFinish(queue); test_error(error, "clFinish failed"); + for (unsigned i = 0; i < 30; ++i) { + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + if (confirmation) break; + } + // verify the result if (!confirmation) {