From 94533424911a46c38dcf1e3fe8f8867e35cffdc5 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Fri, 3 Feb 2023 11:45:11 +0200 Subject: [PATCH] Re-enable Terragen loader unit test --- test/unit/ImportExport/Terragen/utTerragenImportExport.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/unit/ImportExport/Terragen/utTerragenImportExport.cpp b/test/unit/ImportExport/Terragen/utTerragenImportExport.cpp index 6432dbf5f..8ec20e0c0 100644 --- a/test/unit/ImportExport/Terragen/utTerragenImportExport.cpp +++ b/test/unit/ImportExport/Terragen/utTerragenImportExport.cpp @@ -48,13 +48,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. class utTerragenImportExport : public AbstractImportExportBase { public: virtual bool importerTest() { - /*Assimp::Importer importer; + Assimp::Importer importer; const aiScene *scene = importer.ReadFile(ASSIMP_TEST_MODELS_DIR "/TER/RealisticTerrain.ter", aiProcess_ValidateDataStructure); - return nullptr != scene;*/ - return true; + return nullptr != scene; } }; -TEST_F(utTerragenImportExport, importX3DFromFileTest) { +TEST_F(utTerragenImportExport, importFromFileTest) { EXPECT_TRUE(importerTest()); }