Fix ExecutionEnvironment test and rename hwInfoHelper to hardwareInfo

Change-Id: I849b9f5a9f449f063e5717ea9758e80c6662c5a5
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-05-08 17:16:25 +02:00
committed by sys_ocldev
parent 4541b324a7
commit de988d067c
16 changed files with 68 additions and 67 deletions

View File

@@ -1357,7 +1357,7 @@ TEST_F(KernelCommandsTest, givenCacheFlushAfterWalkerEnabledWhenPlatformNotSuppo
DebugManagerStateRestore dbgRestore;
DebugManager.flags.EnableCacheFlushAfterWalker.set(-1);
DebugManager.flags.EnableCacheFlushAfterWalkerForAllQueues.set(1);
hwInfoHelper.capabilityTable.supportCacheFlushAfterWalker = false;
hardwareInfo.capabilityTable.supportCacheFlushAfterWalker = false;
StackVec<GraphicsAllocation *, 32> allocationsForCacheFlush;
mockKernelWithInternal->mockKernel->getAllocationsForCacheFlush(allocationsForCacheFlush);
@@ -1385,7 +1385,7 @@ HWTEST_F(KernelCacheFlushTests, givenLocallyUncachedBufferWhenGettingAllocations
kernel->setArg(1, sizeof(bufferRegular), &bufferRegular);
kernel->getAllocationsForCacheFlush(cacheFlushVec);
size_t expectedCacheFlushVecSize = (hwInfoHelper.capabilityTable.supportCacheFlushAfterWalker ? 1u : 0u);
size_t expectedCacheFlushVecSize = (hardwareInfo.capabilityTable.supportCacheFlushAfterWalker ? 1u : 0u);
EXPECT_EQ(expectedCacheFlushVecSize, cacheFlushVec.size());
clReleaseMemObject(bufferLocallyUncached);