Skip to content

Commit

Permalink
Merge pull request #2239 from RossBrunton/ross/invalidNullPtrPlat
Browse files Browse the repository at this point in the history
Add guards to InvalidNullPointerPlatform
  • Loading branch information
RossBrunton authored Oct 25, 2024
2 parents 4610ef3 + 38f02a2 commit 1487f4b
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 1487f4b

Please sign in to comment.