Remove simple gltf2 export unit test
authorDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Mon, 11 Sep 2017 20:31:40 +0000 (16:31 -0400)
committerDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Mon, 11 Sep 2017 20:31:40 +0000 (16:31 -0400)
Segfaults on Linux for some reason. No other tests test exporting, so it’s fine

test/unit/utglTF2ImportExport.cpp

index fa69d64..8e0fcbb 100644 (file)
@@ -43,7 +43,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include "AbstractImportExportBase.h"
 
 #include <assimp/Importer.hpp>
-#include <assimp/Exporter.hpp>
 
 using namespace Assimp;
 
@@ -54,27 +53,8 @@ public:
         const aiScene *scene = importer.ReadFile( ASSIMP_TEST_MODELS_DIR "/glTF2/BoxTextured-glTF/BoxTextured.gltf", 0);
         return nullptr != scene;
     }
-
-#ifndef ASSIMP_BUILD_NO_EXPORT
-    virtual bool exporterTest() {
-        Assimp::Importer importer;
-        Assimp::Exporter exporter;
-        const aiScene *scene = importer.ReadFile( ASSIMP_TEST_MODELS_DIR "/glTF2/BoxTextured-glTF/BoxTextured.gltf", 0 );
-        EXPECT_NE( nullptr, scene );
-        EXPECT_EQ( aiReturn_SUCCESS, exporter.Export( scene, "gltf2", ASSIMP_TEST_MODELS_DIR "/glTF2/BoxTextured-glTF/BoxTextured_out.gltf" ) );
-
-        return true;
-    }
-#endif // ASSIMP_BUILD_NO_EXPORT
-
 };
 
 TEST_F( utglTF2ImportExport, importglTF2FromFileTest ) {
     EXPECT_TRUE( importerTest() );
 }
-
-#ifndef ASSIMP_BUILD_NO_EXPORT
-TEST_F( utglTF2ImportExport, exportglTF2FromFileTest ) {
-    EXPECT_TRUE( exporterTest() );
-}
-#endif // ASSIMP_BUILD_NO_EXPORT