Added negative tests for clGetCommandBufferInfoKHR (#1929)

* Added negative tests for clGetCommandBufferInfo

* Replaced param_value_size values from 0 to sizeof() - 1
This commit is contained in:
Kamil-Goras-Mobica
2024-04-09 17:54:44 +02:00
committed by GitHub
parent f2a30737b6
commit d0300d176f
4 changed files with 356 additions and 1 deletions

View File

@@ -140,5 +140,30 @@ extern int test_finalize_invalid(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_finalize_empty(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
// Command-buffer negative tests
extern int test_negative_get_command_buffer_info_invalid_command_buffer(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_negative_get_command_buffer_info_not_supported_param_name(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_negative_get_command_buffer_info_queues(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_negative_get_command_buffer_info_ref_count(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_negative_get_command_buffer_info_state(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_negative_get_command_buffer_info_prop_array(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_negative_get_command_buffer_info_context(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
#endif // CL_KHR_COMMAND_BUFFER_PROCS_H