summaryrefslogtreecommitdiff
path: root/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp')
-rw-r--r--offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp b/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp
index 1240f219813e..0247744911ea 100644
--- a/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp
+++ b/offload/unittests/OffloadAPI/device/olGetDeviceInfo.cpp
@@ -19,6 +19,13 @@ TEST_P(olGetDeviceInfoTest, SuccessType) {
sizeof(ol_device_type_t), &DeviceType));
}
+TEST_P(olGetDeviceInfoTest, HostSuccessType) {
+ ol_device_type_t DeviceType;
+ ASSERT_SUCCESS(olGetDeviceInfo(Host, OL_DEVICE_INFO_TYPE,
+ sizeof(ol_device_type_t), &DeviceType));
+ ASSERT_EQ(DeviceType, OL_DEVICE_TYPE_HOST);
+}
+
TEST_P(olGetDeviceInfoTest, SuccessPlatform) {
ol_platform_handle_t Platform = nullptr;
ASSERT_SUCCESS(olGetDeviceInfo(Device, OL_DEVICE_INFO_PLATFORM,