From 2cab2738bb4bbb697d0bf9c3c6b3dc070e8b11be Mon Sep 17 00:00:00 2001 From: Martin Morrison-Grant Date: Thu, 23 Jan 2025 16:10:31 +0000 Subject: [PATCH] wip --- test/conformance/device/urDeviceGetInfo.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test/conformance/device/urDeviceGetInfo.cpp b/test/conformance/device/urDeviceGetInfo.cpp index df71d46626..dd7d53aef6 100644 --- a/test/conformance/device/urDeviceGetInfo.cpp +++ b/test/conformance/device/urDeviceGetInfo.cpp @@ -1968,6 +1968,8 @@ TEST_P(urDeviceGetInfoTest, SuccessESIMDSupported) { } TEST_P(urDeviceGetInfoTest, SuccessComponentDevices) { + UUR_KNOWN_FAILURE_ON(uur::LevelZero{}); + const ur_device_info_t property_name = UR_DEVICE_INFO_COMPONENT_DEVICES; uint32_t device_count = 0; @@ -2006,11 +2008,18 @@ TEST_P(urDeviceGetInfoTest, SuccessComponentDevices) { ASSERT_NE(componentDevice, nullptr); } } else { - size_t size = 999; + size_t property_size = 999; + ASSERT_SUCCESS_OR_OPTIONAL_QUERY( - urDeviceGetInfo(device, property_name, 0, nullptr, &size), + urDeviceGetInfo(device, property_name, 0, nullptr, &property_size), property_name); - ASSERT_EQ(size, 0); + ASSERT_EQ(property_size, 0); + + std::vector componentDevices(property_size); + ASSERT_SUCCESS(urDeviceGetInfo(device, property_name, property_size, + componentDevices.data(), nullptr)); + + ASSERT_TRUE(componentDevices.empty()); } } }