Skip to content

Commit 8332f32

Browse files
committed
regression992 test: only check the actual regression
this test would fail if GDAL doesn't have any jpeg2000 support compiled in
1 parent 3c02fe1 commit 8332f32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/src/core/regression992.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ void Regression992::initTestCase()
7474
QFileInfo myRasterFileInfo( myFileName );
7575
mpRasterLayer = new QgsRasterLayer( myRasterFileInfo.filePath(),
7676
myRasterFileInfo.completeBaseName() );
77+
if ( ! mpRasterLayer->isValid() )
78+
{
79+
QSKIP( "This test requires the JPEG2000 GDAL driver", SkipAll );
80+
}
81+
7782
// Register the layer with the registry
7883
QList<QgsMapLayer *> myList;
7984
myList << mpRasterLayer;
@@ -103,7 +108,6 @@ void Regression992::cleanupTestCase()
103108

104109
void Regression992::regression992()
105110
{
106-
QVERIFY( mpRasterLayer->isValid() );
107111
mpMapRenderer->setExtent( mpRasterLayer->extent() );
108112
QgsRenderChecker myChecker;
109113
myChecker.setControlName( "expected_rgbwcmyk01_YeGeo.jp2" );

0 commit comments

Comments
 (0)