Skip to content

Commit

Permalink
Added negative tests for clEnqueueCommandBufferKHR (#1931)
Browse files Browse the repository at this point in the history
* Added negative tests for clEnqueueCommandBufferKHR

* Added blocking the clEnqueueCommandBufferKHR call on a user event

* Added finalizing buffer before enqueuing
  • Loading branch information
kamil-goras-mobica authored Apr 22, 2024
1 parent 308fa6e commit 4c085de
Show file tree
Hide file tree
Showing 4 changed files with 625 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ set(${MODULE_NAME}_SOURCES
negative_command_buffer_retain_release.cpp
negative_command_buffer_create.cpp
negative_command_buffer_get_info.cpp
negative_command_buffer_enqueue.cpp
)

set_gnulike_module_compile_flags("-Wno-sign-compare")
Expand Down
12 changes: 12 additions & 0 deletions test_conformance/extensions/cl_khr_command_buffer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ test_definition test_list[] = {
ADD_TEST(negative_get_command_buffer_info_state),
ADD_TEST(negative_get_command_buffer_info_prop_array),
ADD_TEST(negative_get_command_buffer_info_context),
ADD_TEST(negative_enqueue_command_buffer_invalid_command_buffer),
ADD_TEST(negative_enqueue_command_buffer_not_finalized),
ADD_TEST(
negative_enqueue_command_buffer_without_simultaneous_no_pending_state),
ADD_TEST(negative_enqueue_command_buffer_null_queues_num_queues),
ADD_TEST(
negative_enqueue_command_buffer_num_queues_not_zero_different_while_buffer_creation),
ADD_TEST(negative_enqueue_command_buffer_not_valid_queue_in_queues),
ADD_TEST(negative_enqueue_queue_not_compatible),
ADD_TEST(negative_enqueue_queue_with_different_context),
ADD_TEST(negative_enqueue_command_buffer_different_context_than_event),
ADD_TEST(negative_enqueue_event_wait_list_null_or_events_null),
};

int main(int argc, const char *argv[])
Expand Down
Loading

0 comments on commit 4c085de

Please sign in to comment.