From 74053780d8c13136f8fcd1b215dcb44e6d511853 Mon Sep 17 00:00:00 2001 From: Pepijn Noltes Date: Thu, 30 May 2024 20:14:55 +0200 Subject: [PATCH] gh-685: Fix macos specific file utils tests --- libs/utils/gtest/src/FileUtilsTestSuite.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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);