Skip to content

Commit

Permalink
regression992 test: only check the actual regression
Browse files Browse the repository at this point in the history
this test would fail if GDAL doesn't have any jpeg2000 support compiled in
  • Loading branch information
lynxlynxlynx committed Apr 15, 2012
1 parent 3c02fe1 commit 8332f32
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 8332f32

Please sign in to comment.