[Command-buffer] Test finalizing empty command-buffer (#1782)

This patch adds two test cases related to command-buffer finalization:

1) That it is an error to finalize and already finalized command-buffer.
See https://github.com/KhronosGroup/OpenCL-Docs/pull/817

2) That it is not an error to create, finalize, and execute an empty
command-buffer. Closes issue #1781
This commit is contained in:
Ewan Crawford
2023-08-29 17:15:39 +01:00
committed by GitHub
parent c23631c690
commit a3262eb4b6
4 changed files with 93 additions and 1 deletions

View File

@@ -59,7 +59,9 @@ test_definition test_list[] = {
ADD_TEST(event_info_command_queue),
ADD_TEST(event_info_execution_status),
ADD_TEST(event_info_context),
ADD_TEST(event_info_reference_count)
ADD_TEST(event_info_reference_count),
ADD_TEST(finalize_invalid),
ADD_TEST(finalize_empty)
};
int main(int argc, const char *argv[])