Skip to content

Commit 19913ae

Browse files
authored
Merge pull request #2239 from RossBrunton/ross/invalidNullPtrPlat
Add guards to InvalidNullPointerPlatform
2 parents 0055a3b + 0db8bf2 commit 19913ae

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)