Skip to content

Commit cb2e81e

Browse files
committedJan 30, 2017
remove GDAL_VERSION_MAJOR >= 2 test
1 parent 61d3147 commit cb2e81e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎tests/src/core/testqgsinvertedpolygonrenderer.cpp

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

5755
private:
5856
bool mTestHasError;
@@ -149,8 +147,7 @@ void TestQgsInvertedPolygon::projectionTest()
149147
mMapSettings.setCrsTransformEnabled( false );
150148
}
151149

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

171167
//
172168
// Private helper functions not called directly by CTest

0 commit comments

Comments
 (0)
Please sign in to comment.