mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Remove platformDevices variable
Resolves: NEO-4499 Change-Id: I7197c416fb81571a5929cf611f3da32c5b24fe46 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user