From 1c3b17b53e2dee3b58450050baded0e8d7e8637d Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Thu, 18 Jul 2024 09:04:41 +0200 Subject: [PATCH] Corrected negative test for CreateInvalidProperty ... in order to avoid using CL_INVALID_SEMAPHORE_KHR as property name or value --- .../cl_khr_semaphore/test_semaphores_negative_create.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp index 282c43c4ab..753e6f42f1 100644 --- a/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp +++ b/test_conformance/extensions/cl_khr_semaphore/test_semaphores_negative_create.cpp @@ -87,8 +87,9 @@ struct CreateInvalidProperty : public SemaphoreTestBase // Create semaphore with invalid properties: // 1) Property name in sema_props is not a supported property name { + cl_semaphore_properties_khr invalid_property_name = ~0UL; cl_semaphore_properties_khr sema_props[] = { - (cl_semaphore_properties_khr)CL_INVALID_SEMAPHORE_KHR, + invalid_property_name, (cl_semaphore_properties_khr)CL_SEMAPHORE_TYPE_BINARY_KHR, 0 }; @@ -107,9 +108,10 @@ struct CreateInvalidProperty : public SemaphoreTestBase // 2) Value specified for a supported property name is not valid { + cl_semaphore_properties_khr invalid_property_value = ~0UL; cl_semaphore_properties_khr sema_props[] = { (cl_semaphore_properties_khr)CL_SEMAPHORE_TYPE_KHR, - (cl_semaphore_properties_khr)CL_INVALID_SEMAPHORE_KHR, 0 + invalid_property_value, 0 }; semaphore =