From 1e690e943a21eee27d058dc582ddaf8f344b87d8 Mon Sep 17 00:00:00 2001 From: Ross Brunton Date: Mon, 6 Jan 2025 15:31:58 +0000 Subject: [PATCH] Update urProgramGetFunctionPointer test The spec says that implementations may return `UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE` for this function, but that wasn't handled by this test. --- test/conformance/program/urProgramGetFunctionPointer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/conformance/program/urProgramGetFunctionPointer.cpp b/test/conformance/program/urProgramGetFunctionPointer.cpp index 6cba188e4e..39e3b0c402 100644 --- a/test/conformance/program/urProgramGetFunctionPointer.cpp +++ b/test/conformance/program/urProgramGetFunctionPointer.cpp @@ -21,10 +21,13 @@ struct urProgramGetFunctionPointerTest : uur::urProgramTest { UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urProgramGetFunctionPointerTest); TEST_P(urProgramGetFunctionPointerTest, Success) { - UUR_KNOWN_FAILURE_ON(uur::OpenCL{"Intel(R) UHD Graphics 770"}); void *function_pointer = nullptr; - ASSERT_SUCCESS(urProgramGetFunctionPointer( - device, program, function_name.data(), &function_pointer)); + ur_result_t res = urProgramGetFunctionPointer( + device, program, function_name.data(), &function_pointer); + if (res == UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE) { + return; + } + ASSERT_SUCCESS(res); ASSERT_NE(function_pointer, nullptr); }