Integrating up through commit 90f050496

This commit is contained in:
alexpete
2021-04-07 14:03:29 -07:00
parent 8f2ed080a9
commit c2cbd430fe
2694 changed files with 285622 additions and 176874 deletions
+19 -1
View File
@@ -26,9 +26,27 @@
#include <System/PhysXSystem.h>
#include <System/PhysXCookingParams.h>
#include <Tests/PhysXTestCommon.h>
#include <UnitTest/ToolsTestApplication.h>
namespace Physics
{
class PhysXEditorTestToolsApplication
: public UnitTest::ToolsTestApplication
{
public:
PhysXEditorTestToolsApplication(AZStd::string appName)
: UnitTest::ToolsTestApplication(AZStd::move(appName))
{
}
bool IsPrefabSystemEnabled() const override
{
// Some physx tests fail if prefabs are enabled for the application,
// for now, make them use slices
return false;
}
};
class PhysXEditorTestEnvironment
: public AZ::Test::GemTestEnvironment
{
@@ -91,7 +109,7 @@ namespace Physics
AZ::ComponentApplication* CreateApplicationInstance() override
{
return aznew AzToolsFramework::ToolsApplication;
return aznew PhysXEditorTestToolsApplication("PhysXEditor");
}
AZStd::unique_ptr<AZ::IO::LocalFileIO> m_fileIo;