mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
test: zero-initialize properties in test body
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d8b161e21e
commit
7db7d58851
@@ -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;
|
||||
|
||||
@@ -20,7 +20,7 @@ components:
|
||||
infra:
|
||||
branch: master
|
||||
dest_dir: infra
|
||||
revision: c22b95384725021235b454e88da4d3dd20bd550a
|
||||
revision: facad98e53ce303e761290786933ce3bab09f021
|
||||
type: git
|
||||
internal:
|
||||
branch: master
|
||||
|
||||
Reference in New Issue
Block a user