Skip to content

Commit 2ed0d34

Browse files
committed
[ur] Fix urPlatformGetNativeHandle test
Do not fail the `urPlatformGetNativeHandleTest.Success` test if adapter returns `UR_RESULT_ERROR_FEATURE_UNSUPPORTED` from `urPlatformGetNativeHandle`.
1 parent 9fc7398 commit 2ed0d34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/conformance/platform/urPlatformGetNativeHandle.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ using urPlatformGetNativeHandleTest = uur::platform::urPlatformsTest;
1010
TEST_F(urPlatformGetNativeHandleTest, Success) {
1111
for (auto platform : platforms) {
1212
ur_native_handle_t native_handle = nullptr;
13-
ASSERT_SUCCESS(urPlatformGetNativeHandle(platform, &native_handle));
13+
if (auto error = urPlatformGetNativeHandle(platform, &native_handle)) {
14+
ASSERT_EQ(UR_RESULT_ERROR_UNSUPPORTED_FEATURE, error);
15+
}
1416
}
1517
}
1618

0 commit comments

Comments
 (0)