Skip to content

Commit

Permalink
[ur] Fix urPlatformGetNativeHandle test
Browse files Browse the repository at this point in the history
Do not fail the `urPlatformGetNativeHandleTest.Success` test if adapter
returns `UR_RESULT_ERROR_FEATURE_UNSUPPORTED` from
`urPlatformGetNativeHandle`.
  • Loading branch information
kbenzie committed Jul 20, 2023
1 parent 9fc7398 commit 2ed0d34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/conformance/platform/urPlatformGetNativeHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ using urPlatformGetNativeHandleTest = uur::platform::urPlatformsTest;
TEST_F(urPlatformGetNativeHandleTest, Success) {
for (auto platform : platforms) {
ur_native_handle_t native_handle = nullptr;
ASSERT_SUCCESS(urPlatformGetNativeHandle(platform, &native_handle));
if (auto error = urPlatformGetNativeHandle(platform, &native_handle)) {
ASSERT_EQ(UR_RESULT_ERROR_UNSUPPORTED_FEATURE, error);
}
}
}

Expand Down

0 comments on commit 2ed0d34

Please sign in to comment.