diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-20 23:45:19 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-01-20 23:45:19 +0100 |
| commit | c4191f3057ef89fb00df31cca23a6093f8f399cb (patch) | |
| tree | 4c2d89c70fd537dda397bf4be7655e65619340d2 /test/unit/test_network.cpp | |
| parent | 9bb87ea4782b6005848afde29db9751e05ee0e55 (diff) | |
| download | PROJ-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/test_network.cpp')
| -rw-r--r-- | test/unit/test_network.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/test_network.cpp b/test/unit/test_network.cpp index 688e61e5..241e6bbc 100644 --- a/test/unit/test_network.cpp +++ b/test/unit/test_network.cpp @@ -1577,7 +1577,7 @@ TEST(networking, download_whole_files) { unlink("proj_test_tmp/dvr90.tif"); rmdir("proj_test_tmp"); - putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=")); + putenv(const_cast<char *>("PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=")); putenv(const_cast<char *>("PROJ_USER_WRITABLE_DIRECTORY=./proj_test_tmp")); putenv(const_cast<char *>("PROJ_FULL_FILE_CHUNK_SIZE=100000")); auto ctx = proj_context_create(); @@ -1699,7 +1699,7 @@ TEST(networking, download_whole_files) { ASSERT_EQ(vectPct.back().second, 1.0); proj_context_destroy(ctx); - putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=YES")); + putenv(const_cast<char *>("PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES")); putenv(const_cast<char *>("PROJ_USER_WRITABLE_DIRECTORY=")); putenv(const_cast<char *>("PROJ_FULL_FILE_CHUNK_SIZE=")); unlink("proj_test_tmp/cache.db"); @@ -1719,7 +1719,7 @@ TEST(networking, file_api) { unlink("proj_test_tmp/dvr90.tif"); rmdir("proj_test_tmp"); - putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=")); + putenv(const_cast<char *>("PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=")); putenv(const_cast<char *>("PROJ_USER_WRITABLE_DIRECTORY=./proj_test_tmp")); putenv(const_cast<char *>("PROJ_FULL_FILE_CHUNK_SIZE=30000")); auto ctx = proj_context_create(); @@ -1843,7 +1843,7 @@ TEST(networking, file_api) { ASSERT_TRUE(userData.in_seek); proj_context_destroy(ctx); - putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=YES")); + putenv(const_cast<char *>("PROJ_SKIP_READ_USER_WRITABLE_DIRECTORY=YES")); putenv(const_cast<char *>("PROJ_USER_WRITABLE_DIRECTORY=")); putenv(const_cast<char *>("PROJ_FULL_FILE_CHUNK_SIZE=")); unlink("proj_test_tmp/cache.db"); |
