diff --git a/libs/utils/gtest/src/FileUtilsTestSuite.cc b/libs/utils/gtest/src/FileUtilsTestSuite.cc index e61afc8ff..47006c4ca 100644 --- a/libs/utils/gtest/src/FileUtilsTestSuite.cc +++ b/libs/utils/gtest/src/FileUtilsTestSuite.cc @@ -235,13 +235,16 @@ TEST_F(FileUtilsTestSuite, ExtractZipDataTest) { EXPECT_EQ(status, CELIX_SUCCESS); EXPECT_TRUE(celix_utils_fileExists(file1)); - auto* props = celix_properties_load(file1); + celix_properties_t* props = nullptr; + auto status = celix_properties_load(file1, 0, &props); + EXPECT_EQ(status, CELIX_SUCCESS); EXPECT_NE(props, nullptr); EXPECT_EQ(celix_properties_getAsLong(props, "level", 0), 1); celix_properties_destroy(props); EXPECT_TRUE(celix_utils_fileExists(file2)); - props = celix_properties_load(file2); + status = celix_properties_load(file2, 0, &props); + EXPECT_EQ(status, CELIX_SUCCESS); EXPECT_NE(props, nullptr); EXPECT_EQ(celix_properties_getAsLong(props, "level", 0), 2); celix_properties_destroy(props);