Skip to content
Permalink
Browse files
regression992 test: only check the actual regression
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 8332f32014595f98ebef1b017224e56904aa5375
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 8332f32

Please sign in to comment.