Skip to content
Permalink
Browse files
Merge pull request #125 from lynxlynxlynx/master
ignore system setup errors in the regression992 test
  • Loading branch information
timlinux committed Apr 15, 2012
2 parents c25a186 + 8332f32 commit 012be7657d9df011ecbc65d521cbd377c1e52be7
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/src/core/regression992.cpp
@@ -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;
@@ -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" );

0 comments on commit 012be76

Please sign in to comment.