Skip to content

Commit

Permalink
Do not register tests in build configurations where they are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Aug 2, 2024
1 parent 9fb5ef8 commit e26c3e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/UEST/Public/UEST.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ class UEST_API FUESTTestBase : public FAutomationTestBase
template<typename TClass>
struct TUESTInstantiator
{
#if WITH_AUTOMATION_WORKER
TUESTInstantiator()
{
Instance = MakeUnique<TClass>();
}
TUniquePtr<TClass> Instance;
#endif
};

#define TEST_CLASS_WITH_BASE(ClassName, BaseClass, PrettyName) \
Expand Down

0 comments on commit e26c3e4

Please sign in to comment.