mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
Get rid of UNRECOVERABLE_IF in MemoryManager constructor
Related-To: NEO-5053 Change-Id: Ibf955c760e61e34c4d38cbb5071ef712bae1c518 Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
47f5867e8f
commit
bd9695a19a
@@ -236,6 +236,23 @@ TEST_F(DrmMemoryManagerWithExplicitExpectationsTest, givenforcePinAllowedWhenMem
|
||||
EXPECT_NE(nullptr, memoryManager->pinBBs[device->getRootDeviceIndex()]);
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, givenDefaultDrmMemoryManagerWhenItIsCreatedThanItIsInitialized) {
|
||||
EXPECT_TRUE(memoryManager->isInitialized());
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, givenDefaultDrmMemoryManagerWhenItIsCreatedAndGfxPartitionInitIsFailedThenItIsNotInitialized) {
|
||||
EXPECT_TRUE(memoryManager->isInitialized());
|
||||
|
||||
auto failedInitGfxPartition = std::make_unique<FailedInitGfxPartition>();
|
||||
memoryManager->gfxPartitions[0].reset(failedInitGfxPartition.release());
|
||||
memoryManager->initialize(gemCloseWorkerMode::gemCloseWorkerInactive);
|
||||
EXPECT_FALSE(memoryManager->isInitialized());
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, defaultDrmMemoryManagerIsInitialized) {
|
||||
EXPECT_TRUE(memoryManager->isInitialized());
|
||||
}
|
||||
|
||||
TEST_F(DrmMemoryManagerTest, pinBBisCreated) {
|
||||
mock->ioctl_expected.gemUserptr = 1;
|
||||
mock->ioctl_expected.gemClose = 1;
|
||||
|
||||
Reference in New Issue
Block a user