test: zero-initialize properties in test body

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-05-16 10:48:01 +00:00
committed by Compute-Runtime-Automation
parent d8b161e21e
commit 7db7d58851
2 changed files with 3 additions and 3 deletions

View File

@@ -996,7 +996,7 @@ TEST_F(DeviceTest, givenDevicePropertiesStructureWhenDevicePropertiesCalledThenA
TEST_F(DeviceTest, givenDevicePropertiesStructureWhenDriverInfoIsEmptyThenDeviceNameTheSameAsInDeviceInfo) {
auto deviceImp = static_cast<DeviceImp *>(device);
ze_device_properties_t deviceProperties;
ze_device_properties_t deviceProperties{};
auto name = device->getNEODevice()->getDeviceInfo().name;
deviceImp->driverInfo.reset();
deviceImp->getProperties(&deviceProperties);
@@ -1005,7 +1005,7 @@ TEST_F(DeviceTest, givenDevicePropertiesStructureWhenDriverInfoIsEmptyThenDevice
TEST_F(DeviceTest, givenDevicePropertiesStructureWhenDriverInfoIsNotEmptyThenDeviceNameTheSameAsInDriverInfo) {
auto deviceImp = static_cast<DeviceImp *>(device);
ze_device_properties_t deviceProperties;
ze_device_properties_t deviceProperties{};
auto driverInfo = std::make_unique<DriverInfoMock>();
std::string customDevName = "Custom device name";
auto name = device->getNEODevice()->getDeviceInfo().name;

View File

@@ -20,7 +20,7 @@ components:
infra:
branch: master
dest_dir: infra
revision: c22b95384725021235b454e88da4d3dd20bd550a
revision: facad98e53ce303e761290786933ce3bab09f021
type: git
internal:
branch: master