aboutsummaryrefslogtreecommitdiff
path: root/test/unit/proj_context_test.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-20 23:45:19 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-01-20 23:45:19 +0100
commitc4191f3057ef89fb00df31cca23a6093f8f399cb (patch)
tree4c2d89c70fd537dda397bf4be7655e65619340d2 /test/unit/proj_context_test.cpp
parent9bb87ea4782b6005848afde29db9751e05ee0e55 (diff)
downloadPROJ-c4191f3057ef89fb00df31cca23a6093f8f399cb.tar.gz
PROJ-c4191f3057ef89fb00df31cca23a6093f8f399cb.zip
Address @hobu 's review comment of https://github.com/OSGeo/PROJ/pull/1839#pullrequestreview-345535380
Diffstat (limited to 'test/unit/proj_context_test.cpp')
-rw-r--r--test/unit/proj_context_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/proj_context_test.cpp b/test/unit/proj_context_test.cpp
index ec59590d..30d6d781 100644
--- a/test/unit/proj_context_test.cpp
+++ b/test/unit/proj_context_test.cpp
@@ -159,18 +159,18 @@ TEST(proj_context, read_grid_from_user_writable_directory) {
auto filename = path + DIR_CHAR + "temp_proj_dic3";
EXPECT_TRUE(createTmpFile(filename));
{
- // Check that with PROJ_IGNORE_USER_WRITABLE_DIRECTORY=YES (set by
+ // Check that with PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES (set by
// calling script), we cannot find the file
auto P = proj_create(ctx, "+init=temp_proj_dic3:MY_PIPELINE");
EXPECT_EQ(P, nullptr);
proj_destroy(P);
}
{
- // Cancel the effect of PROJ_IGNORE_USER_WRITABLE_DIRECTORY
- putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY="));
+ // Cancel the effect of PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY
+ putenv(const_cast<char *>("PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY="));
auto P = proj_create(ctx, "+init=temp_proj_dic3:MY_PIPELINE");
EXPECT_NE(P, nullptr);
- putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=YES"));
+ putenv(const_cast<char *>("PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES"));
proj_destroy(P);
}
proj_context_destroy(ctx);