From 2ed0d342a2ed1d614ee56e917ebd3f74f82e280c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 20 Jul 2023 14:19:03 +0100 Subject: [PATCH] [ur] Fix urPlatformGetNativeHandle test Do not fail the `urPlatformGetNativeHandleTest.Success` test if adapter returns `UR_RESULT_ERROR_FEATURE_UNSUPPORTED` from `urPlatformGetNativeHandle`. --- test/conformance/platform/urPlatformGetNativeHandle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/conformance/platform/urPlatformGetNativeHandle.cpp b/test/conformance/platform/urPlatformGetNativeHandle.cpp index 7bf4fb4c0b..1a19cf4918 100644 --- a/test/conformance/platform/urPlatformGetNativeHandle.cpp +++ b/test/conformance/platform/urPlatformGetNativeHandle.cpp @@ -10,7 +10,9 @@ using urPlatformGetNativeHandleTest = uur::platform::urPlatformsTest; TEST_F(urPlatformGetNativeHandleTest, Success) { for (auto platform : platforms) { ur_native_handle_t native_handle = nullptr; - ASSERT_SUCCESS(urPlatformGetNativeHandle(platform, &native_handle)); + if (auto error = urPlatformGetNativeHandle(platform, &native_handle)) { + ASSERT_EQ(UR_RESULT_ERROR_UNSUPPORTED_FEATURE, error); + } } }