This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/509-remove-osgi-defines
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to 
refs/heads/feature/509-remove-osgi-defines by this push:
     new df9abe89 #509: Replace left over "onFirstInit" values for "clean cache 
dir on create" config property
df9abe89 is described below

commit df9abe89247c0e4bad7b9e0fd42026184b02b552
Author: Pepijn Noltes <[email protected]>
AuthorDate: Mon Nov 6 19:27:37 2023 +0100

    #509: Replace left over "onFirstInit" values for "clean cache dir on 
create" config property
---
 .../rsa_shm/gtest/src/RsaShmActivatorUnitTestSuite.cc                   | 2 +-
 .../rsa_shm/gtest/src/RsaShmIntegrationTestSuite.cc                     | 2 +-
 libs/framework/gtest/src/CelixBundleContextServicesTestSuite.cc         | 2 +-
 libs/framework/gtest/src/CxxBundleContextTestSuite.cc                   | 2 +-
 libs/framework/gtest/src/DependencyManagerTestSuite.cc                  | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmActivatorUnitTestSuite.cc
 
b/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmActivatorUnitTestSuite.cc
index 4ec9ce1c..ac252837 100644
--- 
a/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmActivatorUnitTestSuite.cc
+++ 
b/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmActivatorUnitTestSuite.cc
@@ -29,7 +29,7 @@ class RsaShmActivatorUnitTestSuite : public ::testing::Test {
 public:
     RsaShmActivatorUnitTestSuite() {
         auto* props = celix_properties_create();
-        celix_properties_set(props, CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, 
"onFirstInit");
+        celix_properties_setBool(props, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, true);
         celix_properties_set(props, CELIX_FRAMEWORK_CACHE_DIR, 
".rsa_shm_cache");
         auto* fwPtr = celix_frameworkFactory_createFramework(props);
         auto* ctxPtr = celix_framework_getFrameworkContext(fwPtr);
diff --git 
a/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmIntegrationTestSuite.cc
 
b/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmIntegrationTestSuite.cc
index 54f927dc..c0b36cdb 100644
--- 
a/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmIntegrationTestSuite.cc
+++ 
b/bundles/remote_services/remote_service_admin_shm_v2/rsa_shm/gtest/src/RsaShmIntegrationTestSuite.cc
@@ -24,7 +24,7 @@ class RsaShmActivatorTestSuite : public ::testing::Test {
 public:
     RsaShmActivatorTestSuite() {
         auto* props = celix_properties_create();
-        celix_properties_set(props, CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, 
"onFirstInit");
+        celix_properties_setBool(props, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, true);
         celix_properties_set(props, CELIX_FRAMEWORK_CACHE_DIR, 
".rsa_shm_cache");
         auto* fwPtr = celix_frameworkFactory_createFramework(props);
         auto* ctxPtr = celix_framework_getFrameworkContext(fwPtr);
diff --git a/libs/framework/gtest/src/CelixBundleContextServicesTestSuite.cc 
b/libs/framework/gtest/src/CelixBundleContextServicesTestSuite.cc
index aeb9ebfb..02c8e07e 100644
--- a/libs/framework/gtest/src/CelixBundleContextServicesTestSuite.cc
+++ b/libs/framework/gtest/src/CelixBundleContextServicesTestSuite.cc
@@ -44,7 +44,7 @@ public:
     CelixBundleContextServicesTestSuite() {
         properties = celix_properties_create();
         celix_properties_set(properties, "LOGHELPER_ENABLE_STDOUT_FALLBACK", 
"true");
-        celix_properties_set(properties, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, "onFirstInit");
+        celix_properties_setBool(properties, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, true);
         celix_properties_set(properties, CELIX_FRAMEWORK_CACHE_DIR, 
".cacheBundleContextTestFramework");
         celix_properties_set(properties, 
"CELIX_LOGGING_DEFAULT_ACTIVE_LOG_LEVEL", "trace");
         celix_properties_set(properties, 
"CELIX_FRAMEWORK_CONDITION_SERVICES_ENABLED", "false");
diff --git a/libs/framework/gtest/src/CxxBundleContextTestSuite.cc 
b/libs/framework/gtest/src/CxxBundleContextTestSuite.cc
index f40f9a58..5155c2bb 100644
--- a/libs/framework/gtest/src/CxxBundleContextTestSuite.cc
+++ b/libs/framework/gtest/src/CxxBundleContextTestSuite.cc
@@ -36,7 +36,7 @@ public:
     CxxBundleContextTestSuite() {
         auto* properties = celix_properties_create();
         celix_properties_set(properties, "LOGHELPER_ENABLE_STDOUT_FALLBACK", 
"true");
-        celix_properties_set(properties, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, "onFirstInit");
+        celix_properties_setBool(properties, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, true);
         celix_properties_set(properties, 
"CELIX_FRAMEWORK_CONDITION_SERVICES_ENABLED", "false");
 
         auto* cfw = celix_frameworkFactory_createFramework(properties);
diff --git a/libs/framework/gtest/src/DependencyManagerTestSuite.cc 
b/libs/framework/gtest/src/DependencyManagerTestSuite.cc
index 4d053bfd..7c9ac5dc 100644
--- a/libs/framework/gtest/src/DependencyManagerTestSuite.cc
+++ b/libs/framework/gtest/src/DependencyManagerTestSuite.cc
@@ -35,7 +35,7 @@ public:
     DependencyManagerTestSuite() {
         properties = celix_properties_create();
         celix_properties_set(properties, "LOGHELPER_ENABLE_STDOUT_FALLBACK", 
"true");
-        celix_properties_set(properties, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, "onFirstInit");
+        celix_properties_setBool(properties, 
CELIX_FRAMEWORK_CLEAN_CACHE_DIR_ON_CREATE, true);
         celix_properties_set(properties, CELIX_FRAMEWORK_CACHE_DIR, 
".cacheBundleContextTestFramework");
         celix_properties_set(properties, 
"CELIX_LOGGING_DEFAULT_ACTIVE_LOG_LEVEL", "trace");
 

Reply via email to