From 9263e1d36eec53ee3c4e4d04da93a032c0596eec Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 8 Jan 2020 22:32:54 +0100 Subject: Add capability to read resource files from the user writable directory --- test/unit/gie_self_tests.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/unit/gie_self_tests.cpp') 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("PROJ_IGNORE_USER_WRITABLE_DIRECTORY=")); info = proj_info(); + putenv(const_cast("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, -- cgit v1.2.3