Skip to content

Commit b96dbfe

Browse files
committed
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.
1 parent 778085f commit b96dbfe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/conformance/program/urProgramGetFunctionPointer.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ struct urProgramGetFunctionPointerTest : uur::urProgramTest {
2121
UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urProgramGetFunctionPointerTest);
2222

2323
TEST_P(urProgramGetFunctionPointerTest, Success) {
24-
UUR_KNOWN_FAILURE_ON(uur::OpenCL{"Intel(R) UHD Graphics 770"});
2524
void *function_pointer = nullptr;
26-
ASSERT_SUCCESS(urProgramGetFunctionPointer(
27-
device, program, function_name.data(), &function_pointer));
25+
ur_result_t res = urProgramGetFunctionPointer(
26+
device, program, function_name.data(), &function_pointer);
27+
if (res == UR_RESULT_ERROR_FUNCTION_ADDRESS_NOT_AVAILABLE) {
28+
return;
29+
}
30+
ASSERT_SUCCESS(res);
2831
ASSERT_NE(function_pointer, nullptr);
2932
}
3033

0 commit comments

Comments
 (0)