aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_c_api.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-11-28 14:58:14 +0100
committerKristian Evers <kristianevers@gmail.com>2019-11-28 14:58:14 +0100
commitac2762b581918dd3fcecf2a4d0dd72f92ca87011 (patch)
treed0158eb03d39b9d2249a30ea88f333c8e560f351 /test/unit/test_c_api.cpp
parent2bc1e2e1a9d0a7abe410ee99d39236570474cfde (diff)
parentbce4b158ab5f7d146de8e8fc98df4612dc8c2c9e (diff)
downloadPROJ-ac2762b581918dd3fcecf2a4d0dd72f92ca87011.tar.gz
PROJ-ac2762b581918dd3fcecf2a4d0dd72f92ca87011.zip
Merge branch '6.2' of https://github.com/OSGeo/proj.4 into 6.2
Diffstat (limited to 'test/unit/test_c_api.cpp')
-rw-r--r--test/unit/test_c_api.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp
index 7fd0e742..0a860d1f 100644
--- a/test/unit/test_c_api.cpp
+++ b/test/unit/test_c_api.cpp
@@ -231,7 +231,8 @@ TEST_F(CApi, proj_create_from_wkt) {
" PRIMEM[\"Greenwich\",0],\n"
" UNIT[\"degree\",0.0174532925199433]]",
nullptr, nullptr, nullptr);
- EXPECT_EQ(obj, nullptr);
+ ObjectKeeper keeper(obj);
+ EXPECT_NE(obj, nullptr);
}
{
PROJ_STRING_LIST warningList = nullptr;
@@ -244,7 +245,8 @@ TEST_F(CApi, proj_create_from_wkt) {
" PRIMEM[\"Greenwich\",0],\n"
" UNIT[\"degree\",0.0174532925199433]]",
nullptr, &warningList, &errorList);
- EXPECT_EQ(obj, nullptr);
+ ObjectKeeper keeper(obj);
+ EXPECT_NE(obj, nullptr);
EXPECT_EQ(warningList, nullptr);
proj_string_list_destroy(warningList);
EXPECT_NE(errorList, nullptr);