cl_khr_command_buffer::info_state does not check the state after the command buffer has completed execution
Once a command buffer completes execution (assuming no other pending instances), its state should be transitioned back to CL_COMMAND_BUFFER_STATE_EXECUTABLE_KHR. The info_state test should check that.
Check that the state transition back to "completion" is tested, from the diagram in the spec:
https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_Ext.html#_add_new_section_section_5_x_1_command_buffer_lifecycle
There is already state verification for RunStateInfoTests():
error = verify_state(CL_COMMAND_BUFFER_STATE_EXECUTABLE_KHR);
test_error(error, "verify_state failed");
Could you please specify the details of the requirements for the tests? What other tests should be extended here?
@kpet at the moment such a scenario is tested in CommandBufferGetCommandBufferInfo::RunStateInfoTest, I think we can close that issue.
It looks like this was fixed by https://github.com/KhronosGroup/OpenCL-CTS/pull/1740 but the issue was never closed. Closing now.