Unit tests: Enable data structure validation in cases where it doesn't cause failures

This commit is contained in:
Turo Lamminen
2017-11-21 18:04:22 +02:00
parent 4cf8e10235
commit 127705d347
31 changed files with 67 additions and 39 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ public:
ex = new Assimp::Exporter();
im = new Assimp::Importer();
pTest = im->ReadFile(ASSIMP_TEST_MODELS_DIR "/X/test.x",0);
pTest = im->ReadFile(ASSIMP_TEST_MODELS_DIR "/X/test.x", aiProcess_ValidateDataStructure);
}
virtual void TearDown()
@@ -37,7 +37,7 @@ TEST_F(ExporterTest, testExportToFile)
EXPECT_EQ(AI_SUCCESS,ex->Export(pTest,"collada",file));
// check if we can read it again
EXPECT_TRUE(im->ReadFile(file,0));
EXPECT_TRUE(im->ReadFile(file, aiProcess_ValidateDataStructure));
}
// ------------------------------------------------------------------------------------------------