Skip to content

Commit

Permalink
Merge pull request #2522 from RossBrunton/ross/testchecks
Browse files Browse the repository at this point in the history
Update urProgramGetFunctionPointer test
  • Loading branch information
RossBrunton authored Jan 13, 2025
2 parents c5bf8fd + 1e690e9 commit 0125279
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 0125279

Please sign in to comment.