Skip to content

Commit

Permalink
Add guards to InvalidNullPointerPlatform
Browse files Browse the repository at this point in the history
This test calls `urPlatformGetNativeHandle`, which may report that the
feature is unsupported. Skip this test if the feature is unavailable.
  • Loading branch information
RossBrunton committed Oct 25, 2024
1 parent 4610ef3 commit 38f02a2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions test/conformance/platform/platform_adapter_cuda.match

This file was deleted.

2 changes: 0 additions & 2 deletions test/conformance/platform/platform_adapter_hip.match

This file was deleted.

2 changes: 0 additions & 2 deletions test/conformance/platform/platform_adapter_native_cpu.match

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ TEST_F(urPlatformCreateWithNativeHandleTest, SuccessWithUnOwnedNativeHandle) {
TEST_F(urPlatformCreateWithNativeHandleTest, InvalidNullPointerPlatform) {
for (auto platform : platforms) {
ur_native_handle_t native_handle = 0;
ASSERT_SUCCESS(urPlatformGetNativeHandle(platform, &native_handle));
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(
urPlatformGetNativeHandle(platform, &native_handle));
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_NULL_POINTER,
urPlatformCreateWithNativeHandle(
native_handle, adapters[0], nullptr, nullptr));
Expand Down

0 comments on commit 38f02a2

Please sign in to comment.