mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0e75f431e0
commit
152ee4a627
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user