Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2008-12-10 00:47:49 +0000
committerSimon Kaegi2008-12-10 00:47:49 +0000
commitdde767681155e5a6001eaa18402c01c54a108933 (patch)
tree6b612542b2496d9d293f0b3ac55bde5c4d143754 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator
parent856132724650fc2010839725366db833b3d53e6f (diff)
downloadrt.equinox.p2-dde767681155e5a6001eaa18402c01c54a108933.tar.gz
rt.equinox.p2-dde767681155e5a6001eaa18402c01c54a108933.tar.xz
rt.equinox.p2-dde767681155e5a6001eaa18402c01c54a108933.zip
Bug 258130
[shared install] Error committing engine session on Vista This adds a fix and a regression test for the portion of the bug where we were throwing an uncaught ioexception when the bundle.info is not present.
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsTest.java
index 622130f4d..b9c611680 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/simpleconfigurator/SimpleConfiguratorUtilsTest.java
@@ -157,4 +157,14 @@ public class SimpleConfiguratorUtilsTest extends AbstractProvisioningTest {
fail("improper version error not caught");
}
+ public void testReadMissingBundleInfo() {
+
+ File bundleInfoFile = new File(getTempFolder(), "bundle.info");
+ assertFalse(bundleInfoFile.exists());
+ try {
+ assertEquals(0, SimpleConfiguratorUtils.readConfiguration(bundleInfoFile.toURL(), null).size());
+ } catch (IOException e) {
+ fail();
+ }
+ }
}

Back to the top