Fixes some unit tests due to the removal of the MemoryDriller

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-12-02 12:41:32 -08:00
parent 19ddeeded9
commit de06bb75e5
4 changed files with 7 additions and 0 deletions
@@ -47,6 +47,7 @@ namespace UnitTest
void SetupAllocator(const AZ::SystemAllocator::Descriptor& allocatorDesc = {})
{
m_drillerManager = AZ::Debug::DrillerManager::Create();
AZ::AllocatorManager::Instance().EnterProfilingMode();
AZ::AllocatorManager::Instance().SetDefaultTrackingMode(AZ::Debug::AllocationRecords::RECORD_FULL);
// Only create the SystemAllocator if it s not ready
@@ -69,6 +70,7 @@ namespace UnitTest
AZ::Debug::DrillerManager::Destroy(m_drillerManager);
AZ::AllocatorManager::Instance().SetDefaultTrackingMode(AZ::Debug::AllocationRecords::RECORD_NO_RECORDS);
AZ::AllocatorManager::Instance().ExitProfilingMode();
}
};