Skip to content

Commit

Permalink
Obj-Exporter test: fix test fixure if no export was requetsed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling committed Feb 5, 2017
1 parent da34ffd commit 9538729
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/utObjImportExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ 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 );
Expand All @@ -242,3 +244,5 @@ TEST_F( utObjImportExport, issue809_vertex_color_Test ) {
::Assimp::Exporter exporter;
EXPECT_EQ( aiReturn_SUCCESS, exporter.Export( scene, "obj", ASSIMP_TEST_MODELS_DIR "/OBJ/test.obj" ) );
}

#endif // ASSIMP_BUILD_NO_EXPORT

0 comments on commit 9538729

Please sign in to comment.