Skip to content

Commit

Permalink
Merge pull request #125 from lynxlynxlynx/master
Browse files Browse the repository at this point in the history
ignore system setup errors in the regression992 test
  • Loading branch information
timlinux committed Apr 15, 2012
2 parents c25a186 + 8332f32 commit 012be76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/src/core/regression992.cpp
Expand Up @@ -74,6 +74,11 @@ void Regression992::initTestCase()
QFileInfo myRasterFileInfo( myFileName );
mpRasterLayer = new QgsRasterLayer( myRasterFileInfo.filePath(),
myRasterFileInfo.completeBaseName() );
if ( ! mpRasterLayer->isValid() )
{
QSKIP( "This test requires the JPEG2000 GDAL driver", SkipAll );
}

// Register the layer with the registry
QList<QgsMapLayer *> myList;
myList << mpRasterLayer;
Expand Down Expand Up @@ -103,7 +108,6 @@ void Regression992::cleanupTestCase()

void Regression992::regression992()
{
QVERIFY( mpRasterLayer->isValid() );
mpMapRenderer->setExtent( mpRasterLayer->extent() );
QgsRenderChecker myChecker;
myChecker.setControlName( "expected_rgbwcmyk01_YeGeo.jp2" );
Expand Down

0 comments on commit 012be76

Please sign in to comment.