diff options
| author | PROJ-BOT <59655370+PROJ-BOT@users.noreply.github.com> | 2020-04-05 12:52:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-05 12:52:29 +0200 |
| commit | 7018f85e2d53820c31cf3c633f7020f6630580b9 (patch) | |
| tree | 85d33a006570b5dad6804e768512d9e7931156ed /test/unit | |
| parent | d43a473758fcc44f4539edd082d988a0c01cd56b (diff) | |
| download | PROJ-7018f85e2d53820c31cf3c633f7020f6630580b9.tar.gz PROJ-7018f85e2d53820c31cf3c633f7020f6630580b9.zip | |
[Backport 7.0] hgridshift/vgridshift: defer grid opening when grid has already been opened (#2132)
Diffstat (limited to 'test/unit')
| -rw-r--r-- | test/unit/test_network.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/test_network.cpp b/test/unit/test_network.cpp index 429a7303..db3e987f 100644 --- a/test/unit/test_network.cpp +++ b/test/unit/test_network.cpp @@ -127,6 +127,8 @@ TEST(networking, basic) { ASSERT_EQ(P, nullptr); proj_context_destroy(ctx); + proj_cleanup(); + #ifdef CURL_ENABLED // enable through env variable ctx = proj_context_create(); @@ -141,6 +143,8 @@ TEST(networking, basic) { putenv(const_cast<char *>("PROJ_NETWORK=")); #endif + proj_cleanup(); + // still disabled ctx = proj_context_create(); proj_grid_cache_set_enable(ctx, false); @@ -149,6 +153,8 @@ TEST(networking, basic) { ASSERT_EQ(P, nullptr); proj_context_destroy(ctx); + proj_cleanup(); + // enable through API ctx = proj_context_create(); proj_grid_cache_set_enable(ctx, false); @@ -174,6 +180,7 @@ TEST(networking, basic) { ASSERT_EQ(P, nullptr); #endif proj_context_destroy(ctx); + proj_cleanup(); } // --------------------------------------------------------------------------- |
