aboutsummaryrefslogtreecommitdiff
path: root/test/unit/gie_self_tests.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-08 22:32:54 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-01-08 22:32:54 +0100
commit9263e1d36eec53ee3c4e4d04da93a032c0596eec (patch)
tree12afe91a09b60a9ae2a1b2fbff8fa81b24ceee41 /test/unit/gie_self_tests.cpp
parentda93fe3bea35ae8d2383e6006b7775bb96af6885 (diff)
downloadPROJ-9263e1d36eec53ee3c4e4d04da93a032c0596eec.tar.gz
PROJ-9263e1d36eec53ee3c4e4d04da93a032c0596eec.zip
Add capability to read resource files from the user writable directory
Diffstat (limited to 'test/unit/gie_self_tests.cpp')
-rw-r--r--test/unit/gie_self_tests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/gie_self_tests.cpp b/test/unit/gie_self_tests.cpp
index a738db75..a3b41fb0 100644
--- a/test/unit/gie_self_tests.cpp
+++ b/test/unit/gie_self_tests.cpp
@@ -348,7 +348,9 @@ TEST(gie, info_functions) {
/* proj_info() */
/* this one is difficult to test, since the output changes with the setup */
+ putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY="));
info = proj_info();
+ putenv(const_cast<char *>("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=YES"));
if (info.version[0] != '\0') {
char tmpstr[64];
@@ -360,6 +362,8 @@ TEST(gie, info_functions) {
ASSERT_NE(std::string(info.searchpath), std::string());
}
+ ASSERT_TRUE(std::string(info.searchpath).find("/proj") != std::string::npos);
+
/* proj_pj_info() */
{
P = proj_create(PJ_DEFAULT_CTX,