Skip to content

Commit

Permalink
TemplateTest: Update expected fails for PROJ 8.2.0
Browse files Browse the repository at this point in the history
Task: GH-2008
  • Loading branch information
dg0yt committed Dec 20, 2021
1 parent 074b1a1 commit e247f72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/template_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

#ifdef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
# include <proj_api.h>
#else
# include <proj.h>
#endif

#include "test_config.h"
Expand Down Expand Up @@ -444,7 +446,7 @@ private slots:
QVERIFY(map.getTemplate(template_index)->loadTemplateFile());
QCOMPARE(temp->getTemplateState(), Template::Loaded);

#if !defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) || PJ_VERSION >= 600
#if (!defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) && (PROJ_VERSION_MAJOR)*100+(PROJ_VERSION_MINOR) < 802) || PJ_VERSION >= 600
QEXPECT_FAIL("TemplateTrack from v0.8.4", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
#else
QEXPECT_FAIL("TemplateTrack NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
Expand Down Expand Up @@ -567,7 +569,7 @@ private slots:
ogr_template_center = center(temp);
}

#if !defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) || PJ_VERSION >= 600
#if (!defined(ACCEPT_USE_OF_DEPRECATED_PROJ_API_H) && (PROJ_VERSION_MAJOR)*100+(PROJ_VERSION_MINOR) < 802) || PJ_VERSION >= 600
QEXPECT_FAIL("TemplateTrack NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
QEXPECT_FAIL("OgrTemplate NAD83", "Unsupported WGS 84 -> NAD 83 transformation", Continue);
#endif
Expand Down

0 comments on commit e247f72

Please sign in to comment.