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
@@ -15,7 +15,7 @@
#include <AzCore/UserSettings/UserSettingsComponent.h>
#include <AzFramework/IO/LocalFileIO.h>
#include <AzToolsFramework/Application/ToolsApplication.h>
#include <AzToolsFramework/UnitTest/ToolsTestApplication.h>
#include <System/FabricCooker.h>
#include <System/TangentSpaceHelper.h>
@@ -29,6 +29,24 @@
namespace UnitTest
{
class NvClothToolsTestApplication
: public ToolsTestApplication
{
public:
explicit NvClothToolsTestApplication(AZStd::string applicationName)
: ToolsTestApplication(applicationName)
{
}
protected:
bool IsPrefabSystemEnabled() const override
{
// The NvCloth unit tests currently have a crash on teardown when the prefab system is enabled,
// so they can only be run with prefabs disabled at this time.
return false;
}
};
//! Sets up gem test environment, required components, and shared objects used by cloth (e.g. FabricCooker) for all test cases.
class NvClothEditorTestEnvironment
: public AZ::Test::GemTestEnvironment
@@ -102,7 +120,7 @@ namespace UnitTest
AZ::ComponentApplication* NvClothEditorTestEnvironment::CreateApplicationInstance()
{
return aznew AzToolsFramework::ToolsApplication;
return aznew NvClothToolsTestApplication("NvClothEditorTests");
}
} // namespace UnitTest