mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 07:09:03 +00:00
Add negative test for test_svm size check (#1802)
Isuue #875 clarified that CL_INVALID_BUFFER_SIZE should be returned if clCreateBuffer is passed a pointer returned by clSVMAlloc as its host_ptr and the size of the buffer exceeds the size of the SVM allocation. Add a new negative test to ensure CL_INVALID_BUFFER_SIZE is returned when the size of buffer exceeds the size of the SVM allocation. Fixes #1701
This commit is contained in:
@@ -261,20 +261,21 @@ cl_int create_cl_objects(cl_device_id device_from_harness, const char** ppCodeSt
|
||||
}
|
||||
|
||||
test_definition test_list[] = {
|
||||
ADD_TEST( svm_byte_granularity),
|
||||
ADD_TEST( svm_set_kernel_exec_info_svm_ptrs ),
|
||||
ADD_TEST( svm_fine_grain_memory_consistency ),
|
||||
ADD_TEST( svm_fine_grain_sync_buffers ),
|
||||
ADD_TEST( svm_shared_address_space_fine_grain ),
|
||||
ADD_TEST( svm_shared_sub_buffers ),
|
||||
ADD_TEST( svm_shared_address_space_fine_grain_buffers ),
|
||||
ADD_TEST( svm_allocate_shared_buffer ),
|
||||
ADD_TEST( svm_shared_address_space_coarse_grain_old_api ),
|
||||
ADD_TEST( svm_shared_address_space_coarse_grain_new_api ),
|
||||
ADD_TEST( svm_cross_buffer_pointers_coarse_grain ),
|
||||
ADD_TEST( svm_pointer_passing ),
|
||||
ADD_TEST( svm_enqueue_api ),
|
||||
ADD_TEST_VERSION( svm_migrate, Version(2, 1)),
|
||||
ADD_TEST(svm_byte_granularity),
|
||||
ADD_TEST(svm_set_kernel_exec_info_svm_ptrs),
|
||||
ADD_TEST(svm_fine_grain_memory_consistency),
|
||||
ADD_TEST(svm_fine_grain_sync_buffers),
|
||||
ADD_TEST(svm_shared_address_space_fine_grain),
|
||||
ADD_TEST(svm_shared_sub_buffers),
|
||||
ADD_TEST(svm_shared_address_space_fine_grain_buffers),
|
||||
ADD_TEST(svm_allocate_shared_buffer),
|
||||
ADD_TEST(svm_allocate_shared_buffer_negative),
|
||||
ADD_TEST(svm_shared_address_space_coarse_grain_old_api),
|
||||
ADD_TEST(svm_shared_address_space_coarse_grain_new_api),
|
||||
ADD_TEST(svm_cross_buffer_pointers_coarse_grain),
|
||||
ADD_TEST(svm_pointer_passing),
|
||||
ADD_TEST(svm_enqueue_api),
|
||||
ADD_TEST_VERSION(svm_migrate, Version(2, 1)),
|
||||
};
|
||||
|
||||
const int test_num = ARRAY_SIZE( test_list );
|
||||
|
||||
Reference in New Issue
Block a user