From f91daf3d062d7d085bd9e9154869d2179655685f Mon Sep 17 00:00:00 2001 From: Jim Lewis Date: Thu, 6 Jan 2022 04:23:07 -0600 Subject: [PATCH] Remove invalid negative_get_platform_info testcase (#1374) * Remove invalid negative_get_platform_info testcase * Implementations are only required to do null checks * Fixes #1318 * Fix formatting --- test_conformance/api/negative_platform.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/test_conformance/api/negative_platform.cpp b/test_conformance/api/negative_platform.cpp index 7d9de5df..861d4748 100644 --- a/test_conformance/api/negative_platform.cpp +++ b/test_conformance/api/negative_platform.cpp @@ -42,18 +42,9 @@ int test_negative_get_platform_info(cl_device_id deviceID, cl_context context, { cl_platform_id platform = getPlatformFromDevice(deviceID); - cl_int err = - clGetPlatformInfo(reinterpret_cast(deviceID), - CL_PLATFORM_VERSION, sizeof(char*), nullptr, nullptr); - test_failure_error_ret( - err, CL_INVALID_PLATFORM, - "clGetPlatformInfo should return CL_INVALID_PLATFORM when: \"platform " - "is not a valid platform\" using a valid object which is NOT a " - "platform", - TEST_FAIL); - constexpr cl_platform_info INVALID_PARAM_VALUE = 0; - err = clGetPlatformInfo(platform, INVALID_PARAM_VALUE, 0, nullptr, nullptr); + cl_int err = + clGetPlatformInfo(platform, INVALID_PARAM_VALUE, 0, nullptr, nullptr); test_failure_error_ret( err, CL_INVALID_VALUE, "clGetPlatformInfo should return CL_INVALID_VALUE when: \"param_name "