Skip to content

Commit 9f5e0dc

Browse files
committed
[CTS] skip image tests if images are not supported
1 parent e3247c2 commit 9f5e0dc

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

test/conformance/memory/memory_adapter_level_zero_v2.match

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

test/conformance/memory/urMemImageCreateWithImageFormatParam.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ TEST_P(urMemImageCreateTestWithImageFormatParam, Success) {
110110
}
111111
}
112112

113+
if (res == UR_RESULT_ERROR_UNSUPPORTED_FEATURE) {
114+
GTEST_SKIP() << "urMemImageCreate not supported";
115+
}
116+
113117
if (!is_primary_image_format &&
114118
res == UR_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT) {
115119
GTEST_SKIP();

test/conformance/memory/urMemImageCreateWithNativeHandle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ UUR_INSTANTIATE_DEVICE_TEST_SUITE_P(urMemImageCreateWithNativeHandleTest);
1010

1111
TEST_P(urMemImageCreateWithNativeHandleTest, Success) {
1212
ur_native_handle_t native_handle = 0;
13-
ASSERT_SUCCESS(urMemGetNativeHandle(image, device, &native_handle));
13+
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(urMemGetNativeHandle(image, device, &native_handle));
1414

1515
ur_mem_handle_t mem = nullptr;
1616
ASSERT_SUCCESS(urMemImageCreateWithNativeHandle(

0 commit comments

Comments
 (0)