diff options
author | kdaniel | 2013-12-30 08:32:53 +0000 |
---|---|---|
committer | kdaniel | 2013-12-30 08:33:17 +0000 |
commit | 24b39e87bdec62bc7faa84a099cf770fc572eefe (patch) | |
tree | 250f2d73ce263d7898c16e1bc967a9dc331423f5 | |
parent | b8f8a913148e83b5f89e7fcea6d06442f6b9b7ba (diff) | |
download | rt.equinox.p2-24b39e87bdec62bc7faa84a099cf770fc572eefe.tar.gz rt.equinox.p2-24b39e87bdec62bc7faa84a099cf770fc572eefe.tar.xz rt.equinox.p2-24b39e87bdec62bc7faa84a099cf770fc572eefe.zip |
Added setting readonly using acl on win.
Change-Id: I35dc0a2cad2490e3df4ba86d864bbf96d00ce824
Signed-off-by: kdaniel <krzysztof.daniel@gmail.com>
4 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/SharedInstallTestsProfileSpoofEnabledConfigured.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/SharedInstallTestsProfileSpoofEnabledConfigured.java index 07b085e4d..739eab636 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/SharedInstallTestsProfileSpoofEnabledConfigured.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/SharedInstallTestsProfileSpoofEnabledConfigured.java @@ -73,10 +73,12 @@ public class SharedInstallTestsProfileSpoofEnabledConfigured extends SharedInsta extensions = getTempFolder(); copy("", getTestData("", "testData/reconciler/extensions/ext1"), extensions); setReadOnly(extensions, true); + AbstractSharedInstallTest.reallyReadOnly(extensions); } @Override protected void tearDown() throws Exception { + AbstractSharedInstallTest.removeReallyReadOnly(extensions); setReadOnly(extensions, false); extensions.delete(); super.tearDown(); diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/BundlesTxtTestExtendedConfigured.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/BundlesTxtTestExtendedConfigured.java index 0230a1bcb..2e08c5467 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/BundlesTxtTestExtendedConfigured.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/BundlesTxtTestExtendedConfigured.java @@ -29,6 +29,7 @@ public class BundlesTxtTestExtendedConfigured extends BundlesTxtTestExtended { Activator.EXTENSIONS = testData.toString(); System.setProperty("p2.fragments", Activator.EXTENSIONS); AbstractSharedInstallTest.setReadOnly(testData, true); + AbstractSharedInstallTest.reallyReadOnly(testData); } @Override @@ -44,6 +45,7 @@ public class BundlesTxtTestExtendedConfigured extends BundlesTxtTestExtended { @Override protected void tearDown() throws Exception { Activator.EXTENSIONS = null; + AbstractSharedInstallTest.removeReallyReadOnly(testData); AbstractSharedInstallTest.setReadOnly(testData, false); testData.delete(); super.tearDown(); diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorTestExtendedConfigured.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorTestExtendedConfigured.java index c73173842..115184d61 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorTestExtendedConfigured.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorTestExtendedConfigured.java @@ -39,12 +39,14 @@ public class SimpleConfiguratorTestExtendedConfigured extends SimpleConfigurator ext3Info.createNewFile(); ext1Info.setLastModified(System.currentTimeMillis() + 1000); AbstractSharedInstallTest.setReadOnly(ext1Parent, true); + AbstractSharedInstallTest.reallyReadOnly(ext1Parent); ext3Info.setLastModified(System.currentTimeMillis() + 1000); } @Override protected void tearDown() throws Exception { Activator.EXTENSIONS = null; + AbstractSharedInstallTest.removeReallyReadOnly(ext1Parent); AbstractSharedInstallTest.setReadOnly(ext1Parent, false); super.tearDown(); } diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsExtendedConfiguredTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsExtendedConfiguredTest.java index b1a00291a..efba8732f 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsExtendedConfiguredTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsExtendedConfiguredTest.java @@ -33,6 +33,7 @@ public class SimpleConfiguratorUtilsExtendedConfiguredTest extends SimpleConfigu copy("preparing readonly data", getTestData("simpleconfigurator extensions", "testData/simpleConfiguratorExtendedTest"), testData); testData = new File(testData, "extensions"); AbstractSharedInstallTest.setReadOnly(testData.getParentFile(), true); + AbstractSharedInstallTest.reallyReadOnly(testData.getParentFile()); Activator.EXTENSIONS = testData.toString(); mainBundlesInfo = getTestData("simpleconfigurator extensions - main bundles.info", "testData/simpleConfiguratorExtendedTest/main/bundles.info"); @@ -41,6 +42,7 @@ public class SimpleConfiguratorUtilsExtendedConfiguredTest extends SimpleConfigu @Override protected void tearDown() throws Exception { Activator.EXTENSIONS = null; + AbstractSharedInstallTest.removeReallyReadOnly(testData.getParentFile()); AbstractSharedInstallTest.setReadOnly(testData.getParentFile(), false); testData.getParentFile().delete(); super.tearDown(); |