Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new cl_khr_semaphore tests to verify clCreateSemaphoreWithPropertiesKHR negative results #1962

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(${MODULE_NAME}_SOURCES
test_semaphores.cpp
test_semaphores_negative_getinfo.cpp
test_semaphores_negative_wait.cpp
test_semaphores_negative_create.cpp
semaphore_base.h
)

Expand Down
11 changes: 11 additions & 0 deletions test_conformance/extensions/cl_khr_semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ test_definition test_list[] = {
ADD_TEST_VERSION(semaphores_multi_wait, Version(1, 2)),
ADD_TEST_VERSION(semaphores_queries, Version(1, 2)),
ADD_TEST_VERSION(semaphores_import_export_fd, Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_context, Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_property,
Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_multi_device_property,
Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_device, Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_import_invalid_device,
Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_value, Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_operation,
Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_get_info_invalid_semaphore,
Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_get_info_invalid_value, Version(1, 2)),
Expand Down
22 changes: 22 additions & 0 deletions test_conformance/extensions/cl_khr_semaphore/procs.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ extern int test_semaphores_import_export_fd(cl_device_id deviceID,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_invalid_context(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_invalid_property(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_multi_device_property(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_invalid_device(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_import_invalid_device(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_invalid_value(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_create_invalid_operation(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_semaphores_negative_get_info_invalid_semaphore(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
Expand Down
Loading
Loading