Skip to content
Permalink
Browse files

Revert "remove GDAL_VERSION_MAJOR >= 2 test"

This reverts commit cb2e81e.
  • Loading branch information
3nids committed Jan 30, 2017
1 parent cb2e81e commit a79bf9704ad8553aa594ca46cabccdf026e30476
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/src/core/testqgsinvertedpolygonrenderer.cpp
@@ -50,7 +50,9 @@ class TestQgsInvertedPolygon : public QObject
void graduatedSubRenderer();
void preprocess();
void projectionTest();
#if defined(GDAL_VERSION_NUM) && GDAL_VERSION_MAJOR >= 2
void curvedPolygons();
#endif

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

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

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

1 comment on commit a79bf97

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on a79bf97 Jan 30, 2017

@3nids - heh - i'd tried that too, and quickly backed it out as well. Looks like that test was never running due to the invalid #if and has been broken for some time.

@mhugo can you take a look at this?

Please sign in to comment.
You can’t perform that action at this time.