diff --git a/test/DataArrayTest.cpp b/test/DataArrayTest.cpp index 5d1ef0e6dd..101b00e46c 100644 --- a/test/DataArrayTest.cpp +++ b/test/DataArrayTest.cpp @@ -13,6 +13,11 @@ using namespace complex; +namespace unit_test +{ +inline constexpr StringLiteral k_BuildDir = COMPLEX_BUILD_DIR; +} + TEST_CASE("Array") { FloatVec3 vec0(3.0F, 4.0F, 5.0F); @@ -52,6 +57,7 @@ TEST_CASE("DataArrayCreation") TEST_CASE("complex::DataArray Copy TupleTest", "[complex][DataArray]") { + Application::GetOrCreateInstance()->loadPlugins(unit_test::k_BuildDir.view(), true); const std::string k_DataArrayName("DataArray"); const DataPath k_DataPath({k_DataArrayName}); diff --git a/test/IOFormat.cpp b/test/IOFormat.cpp index 5f85a59743..0ae851f178 100644 --- a/test/IOFormat.cpp +++ b/test/IOFormat.cpp @@ -30,6 +30,11 @@ TEST_CASE("Target DataStructure Size", "IOTest") const uint64 memory = Memory::GetTotalMemory(); const uint64 largeDataSize = preferences->valueAs(Preferences::k_LargeDataSize_Key); - const uint64 targetReducedSize = (memory - largeDataSize); + const uint64 minimumRemaining = 2 * largeDataSize; + uint64 targetReducedSize = (memory - 2 * largeDataSize); + if(minimumRemaining >= memory) + { + targetReducedSize = memory / 2; + } REQUIRE(preferences->defaultValueAs(Preferences::k_LargeDataStructureSize_Key) == targetReducedSize); } \ No newline at end of file