Sysman Fix Multithread Access for zesMemoryGetState

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>

Related-To: LOCI-2727
This commit is contained in:
Joshua Santosh Ranjan
2021-11-22 06:58:00 +00:00
committed by Compute-Runtime-Automation
parent 0e75f431e0
commit 152ee4a627
3 changed files with 13 additions and 0 deletions

View File

@@ -135,3 +135,11 @@ TEST(DrmQueryTest, givenDrmAllocationWhenShouldAllocationFaultIsCalledThenReturn
MockDrmAllocation allocation(GraphicsAllocation::AllocationType::BUFFER, MemoryPool::MemoryNull);
EXPECT_FALSE(allocation.shouldAllocationPageFault(&drm));
}
TEST(DrmQueryTest, givenDrmWhenGettingMemoryRegionsThenReturnNull) {
auto executionEnvironment = std::make_unique<ExecutionEnvironment>();
executionEnvironment->prepareRootDeviceEnvironments(1);
DrmMock drm{*executionEnvironment->rootDeviceEnvironments[0]};
EXPECT_EQ(drm.getMemoryRegions(), nullptr);
}