Skip to content

Commit a79bf97

Browse files
committed
Revert "remove GDAL_VERSION_MAJOR >= 2 test"
This reverts commit cb2e81e.
1 parent cb2e81e commit a79bf97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/src/core/testqgsinvertedpolygonrenderer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class TestQgsInvertedPolygon : public QObject
5050
void graduatedSubRenderer();
5151
void preprocess();
5252
void projectionTest();
53+
#if defined(GDAL_VERSION_NUM) && GDAL_VERSION_MAJOR >= 2
5354
void curvedPolygons();
55+
#endif
5456

5557
private:
5658
bool mTestHasError;
@@ -147,7 +149,8 @@ void TestQgsInvertedPolygon::projectionTest()
147149
mMapSettings.setCrsTransformEnabled( false );
148150
}
149151

150-
// This test relies on GDAL support of curved polygons i.e. GDAL >= 2
152+
#if defined(GDAL_VERSION_NUM) && GDAL_VERSION_MAJOR >= 2
153+
// This test relies on GDAL support of curved polygons
151154
void TestQgsInvertedPolygon::curvedPolygons()
152155
{
153156
QString myCurvedPolysFileName = mTestDataDir + "curved_polys.gpkg";
@@ -163,6 +166,7 @@ void TestQgsInvertedPolygon::curvedPolygons()
163166
QVERIFY( imageCheck( "inverted_polys_curved" ) );
164167
mMapSettings.setLayers( QStringList() << curvedLayer->id() );
165168
}
169+
#endif
166170

167171
//
168172
// Private helper functions not called directly by CTest

0 commit comments

Comments
 (0)