From 8a7e30b6a79dc21fd71e016b064871409050ee95 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 6 Feb 2017 13:06:47 +0100 Subject: [PATCH] Update utObjImportExport.cpp Unittest: Make obj-exporter test depending on export state. --- test/unit/utObjImportExport.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/unit/utObjImportExport.cpp b/test/unit/utObjImportExport.cpp index a9de5e7d9..eb1077956 100644 --- a/test/unit/utObjImportExport.cpp +++ b/test/unit/utObjImportExport.cpp @@ -234,15 +234,13 @@ TEST_F( utObjImportExport, issue1111_no_mat_name_Test ) { EXPECT_NE( nullptr, scene ); } -#ifndef ASSIMP_BUILD_NO_EXPORT - TEST_F( utObjImportExport, issue809_vertex_color_Test ) { ::Assimp::Importer importer; const aiScene *scene = importer.ReadFile( ASSIMP_TEST_MODELS_DIR "/OBJ/cube_with_vertexcolors.obj", 0 ); EXPECT_NE( nullptr, scene ); +#ifndef ASSIMP_BUILD_NO_EXPORT ::Assimp::Exporter exporter; EXPECT_EQ( aiReturn_SUCCESS, exporter.Export( scene, "obj", ASSIMP_TEST_MODELS_DIR "/OBJ/test.obj" ) ); -} - #endif // ASSIMP_BUILD_NO_EXPORT +}