Fix segfault in failing tests on Linux

This commit is contained in:
amzn-sj
2021-05-24 14:01:41 -07:00
parent 86932f95d6
commit 090b770d7e
5 changed files with 47 additions and 14 deletions
+3 -3
View File
@@ -89,15 +89,15 @@ class BehaviorEntityTest
protected:
void SetUp() override
{
m_appDescriptor.m_enableScriptReflection = true;
FrameworkApplicationFixture::SetUp();
AZ::SettingsRegistryInterface* registry = AZ::SettingsRegistry::Get();
auto projectPathKey =
AZ::SettingsRegistryInterface::FixedValueString(AZ::SettingsRegistryMergeUtils::BootstrapSettingsRootKey) + "/project_path";
registry->Set(projectPathKey, "AutomatedTesting");
AZ::SettingsRegistryMergeUtils::MergeSettingsToRegistry_AddRuntimeFilePaths(*registry);
m_appDescriptor.m_enableScriptReflection = true;
FrameworkApplicationFixture::SetUp();
m_application->RegisterComponentDescriptor(HatComponent::CreateDescriptor());
m_application->RegisterComponentDescriptor(EarComponent::CreateDescriptor());
m_application->RegisterComponentDescriptor(DeactivateDuringActivationComponent::CreateDescriptor());