I want to see what GetErrorString() blurts out on the Travis failure real quick

pull/1683/head
BuildTools 2018-01-11 15:47:07 -08:00
parent 4410de1c44
commit dda91094f2
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <iostream>
class BlendImportAreaLight : public ::testing::Test {
public:
@ -69,6 +70,7 @@ protected:
TEST_F(BlendImportAreaLight, testImportLight)
{
const aiScene* pTest = im->ReadFile(ASSIMP_TEST_MODELS_DIR "/BLEND/AreaLight_269.blend", aiProcess_ValidateDataStructure);
if (!pTest) std::cerr << im->GetErrorString() << '\n'; // temporary, for pull req. diagnostics
ASSERT_TRUE(pTest != NULL);
ASSERT_TRUE(pTest->HasLights());