mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
test: Implement clang tidy fix for prefecth_manager_tests.cpp
Related-To: NEO-12989 Signed-off-by: John Falkowski <john.falkowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
73be711023
commit
a72b22c2ce
@@ -34,8 +34,6 @@ TEST(PrefetchManagerTests, givenPrefetchManagerWhenCallingInterfaceFunctionsThen
|
||||
auto ptr = svmManager->createSharedUnifiedMemoryAllocation(4096u, unifiedMemoryProperties, nullptr);
|
||||
ASSERT_NE(nullptr, ptr);
|
||||
|
||||
auto ptr2 = malloc(1024);
|
||||
|
||||
auto &hwInfo = *device->getRootDeviceEnvironment().getMutableHardwareInfo();
|
||||
|
||||
VariableBackup<uint64_t> sharedSystemMemCapabilities{&hwInfo.capabilityTable.sharedSystemMemCapabilities};
|
||||
@@ -44,6 +42,8 @@ TEST(PrefetchManagerTests, givenPrefetchManagerWhenCallingInterfaceFunctionsThen
|
||||
auto svmData = svmManager->getSVMAlloc(ptr);
|
||||
ASSERT_NE(nullptr, svmData);
|
||||
|
||||
auto ptr2 = malloc(1024);
|
||||
|
||||
EXPECT_EQ(0u, prefetchContext.allocations.size());
|
||||
|
||||
prefetchManager->insertAllocation(prefetchContext, *svmManager.get(), *device, ptr, 4096);
|
||||
|
||||
Reference in New Issue
Block a user