Skip to content

Commit 0db8bf2

Browse files
committed
Add guards to InvalidNullPointerPlatform
This test calls `urPlatformGetNativeHandle`, which may report that the feature is unsupported. Skip this test if the feature is unavailable.
1 parent 0055a3b commit 0db8bf2

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

test/conformance/platform/platform_adapter_cuda.match

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/conformance/platform/platform_adapter_hip.match

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/conformance/platform/platform_adapter_native_cpu.match

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/conformance/platform/urPlatformCreateWithNativeHandle.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ TEST_F(urPlatformCreateWithNativeHandleTest, SuccessWithUnOwnedNativeHandle) {
8383
TEST_F(urPlatformCreateWithNativeHandleTest, InvalidNullPointerPlatform) {
8484
for (auto platform : platforms) {
8585
ur_native_handle_t native_handle = 0;
86-
ASSERT_SUCCESS(urPlatformGetNativeHandle(platform, &native_handle));
86+
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(
87+
urPlatformGetNativeHandle(platform, &native_handle));
8788
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_NULL_POINTER,
8889
urPlatformCreateWithNativeHandle(
8990
native_handle, adapters[0], nullptr, nullptr));

0 commit comments

Comments
 (0)