diff --git a/test_conformance/api/negative_platform.cpp b/test_conformance/api/negative_platform.cpp index d41b35fe..7d9de5df 100644 --- a/test_conformance/api/negative_platform.cpp +++ b/test_conformance/api/negative_platform.cpp @@ -42,15 +42,7 @@ int test_negative_get_platform_info(cl_device_id deviceID, cl_context context, { cl_platform_id platform = getPlatformFromDevice(deviceID); - cl_int err = clGetPlatformInfo(nullptr, 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 nullptr", - TEST_FAIL); - - err = + cl_int err = clGetPlatformInfo(reinterpret_cast(deviceID), CL_PLATFORM_VERSION, sizeof(char*), nullptr, nullptr); test_failure_error_ret(