summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2013-05-26 21:16:01 (EDT)
committerPascal Rapicault2013-05-26 21:16:01 (EDT)
commit51ac489b776bbc5eecf11f366ae1297c23d395ca (patch)
treeef5c923e2291badc951f8d296dc4d287e61370ed
parent0ca9c7abe52ea7df9d6ccf69cabf08d0870284cb (diff)
downloadrt.equinox.p2-51ac489b776bbc5eecf11f366ae1297c23d395ca.zip
rt.equinox.p2-51ac489b776bbc5eecf11f366ae1297c23d395ca.tar.gz
rt.equinox.p2-51ac489b776bbc5eecf11f366ae1297c23d395ca.tar.bz2
Bug 409095 - [test] AbstractSharedInstallTest#removeReallyReadOnly failsI20130527-0800
with NPE on Mac
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/AbstractSharedInstallTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/AbstractSharedInstallTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/AbstractSharedInstallTest.java
index ede8a43..b458836 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/AbstractSharedInstallTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/sharedinstall/AbstractSharedInstallTest.java
@@ -200,6 +200,9 @@ public abstract class AbstractSharedInstallTest extends AbstractReconcilerTest {
}
protected void removeReallyReadOnly(File folder) {
+ if (!Platform.getOS().equals(Platform.OS_WIN32))
+ return;
+
try {
Path path = folder.toPath();
AclFileAttributeView view = Files.getFileAttributeView(path, AclFileAttributeView.class);