This is an automated email from the ASF dual-hosted git repository. tjwatson pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/felix-atomos.git
commit 51d6d31a120e75ddd8207e5b6a2b88391f06140e Author: Thomas Watson <[email protected]> AuthorDate: Wed Feb 26 10:05:36 2020 -0600 Use felix.cache.locking=false to avoid issues on windows The testcase is an error condition causing Felix to fail to release its cache lock. This results in failing to delete the temp dir on Windows for the framework storage area. Disabling the cache lock in felix to work around Also, be sure to wait for stop on temp framework instance --- .../felix/atomos/tests/modulepath/service/ModulepathLaunchTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atomos.tests/atomos.tests.modulepath.service/src/test/java/org/apache/felix/atomos/tests/modulepath/service/ModulepathLaunchTest.java b/atomos.tests/atomos.tests.modulepath.service/src/test/java/org/apache/felix/atomos/tests/modulepath/service/ModulepathLaunchTest.java index 1b7bc5f..58038e3 100644 --- a/atomos.tests/atomos.tests.modulepath.service/src/test/java/org/apache/felix/atomos/tests/modulepath/service/ModulepathLaunchTest.java +++ b/atomos.tests/atomos.tests.modulepath.service/src/test/java/org/apache/felix/atomos/tests/modulepath/service/ModulepathLaunchTest.java @@ -507,7 +507,8 @@ public class ModulepathLaunchTest try { f = AtomosLauncher.newFramework( - Map.of(Constants.FRAMEWORK_STORAGE, storage2.getAbsolutePath()), + Map.of(Constants.FRAMEWORK_STORAGE, storage2.getAbsolutePath(), + "felix.cache.locking", "false"), atomosRuntime); f.start(); fail(); @@ -521,6 +522,7 @@ public class ModulepathLaunchTest if (f != null) { f.stop(); + f.waitForStop(5000); } } }
