Skip to content

Commit

Permalink
Update urProgramGetFunctionPointer test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RossBrunton committed Jan 13, 2025
1 parent c5bf8fd commit 1e690e9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/conformance/program/urProgramGetFunctionPointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1e690e9

Please sign in to comment.