Skip to content

Commit c12d602

Browse files
authored
Merge pull request #736 from kbenzie/benie/cts-fix-platform-get-native-handle-test
[ur] Fix urPlatformGetNativeHandle test
2 parents 9fc7398 + 2ed0d34 commit c12d602

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)