Remove platformDevices variable

Resolves: NEO-4499
Change-Id: I7197c416fb81571a5929cf611f3da32c5b24fe46
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-03-25 07:09:14 +01:00
parent fb0f74dc5a
commit 0379ad9f67
5 changed files with 1 additions and 10 deletions

View File

@@ -210,8 +210,6 @@ int main(int argc, char **argv) {
productFamily = hwInfoForTests.platform.eProductFamily;
renderCoreFamily = hwInfoForTests.platform.eRenderCoreFamily;
NEO::platformDevices = new NEO::HardwareInfo *[1];
NEO::platformDevices[0] = &hwInfoForTests;
NEO::defaultHwInfo = std::make_unique<NEO::HardwareInfo>();
*NEO::defaultHwInfo = hwInfoForTests;
@@ -219,7 +217,6 @@ int main(int argc, char **argv) {
NEO::MockSipData::mockSipKernel.reset(new NEO::MockSipKernel());
auto retVal = RUN_ALL_TESTS();
delete[] NEO::platformDevices;
return retVal;
}

View File

@@ -35,7 +35,7 @@ struct ActiveDebuggerFixture {
auto mockBuiltIns = new MockBuiltins();
executionEnvironment->prepareRootDeviceEnvironments(1);
executionEnvironment->rootDeviceEnvironments[0]->builtins.reset(mockBuiltIns);
executionEnvironment->rootDeviceEnvironments[0]->setHwInfo(*platformDevices);
executionEnvironment->rootDeviceEnvironments[0]->setHwInfo(defaultHwInfo.get());
debugger = new MockActiveSourceLevelDebugger(new MockOsLibrary);
executionEnvironment->rootDeviceEnvironments[0]->debugger.reset(debugger);