diff options
author | Thomas Watson | 2011-07-18 17:53:12 +0000 |
---|---|---|
committer | Thomas Watson | 2011-07-18 17:53:12 +0000 |
commit | 41646a93650c038167ac5f20fb15a4ae8d357341 (patch) | |
tree | 4f8fb105fff7175d4e89069b672c4660ffc6ec57 /bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java | |
parent | 96db772ebecef5d3d5e129d97b3905ff47520f40 (diff) | |
download | rt.equinox.framework-41646a93650c038167ac5f20fb15a4ae8d357341.tar.gz rt.equinox.framework-41646a93650c038167ac5f20fb15a4ae8d357341.tar.xz rt.equinox.framework-41646a93650c038167ac5f20fb15a4ae8d357341.zip |
Bug 352275 - Empty org.osgi.framework.system.packages.extra causesv20110718-1559
"Invalid manifest header Export-Package"
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java index baf50b409..d7b362a74 100644 --- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java +++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java @@ -1375,6 +1375,32 @@ public class SystemBundleTests extends AbstractBundleTests { } } + public void testBug352275() { + // simple test to create an embedded framework + File config = OSGiTestsActivator.getContext().getDataFile(getName()); //$NON-NLS-1$ + Properties configuration = new Properties(); + configuration.put(Constants.FRAMEWORK_STORAGE, config.getAbsolutePath()); + configuration.put(Constants.FRAMEWORK_SYSTEMPACKAGES_EXTRA, ""); + Equinox equinox = new Equinox(configuration); + try { + equinox.init(); + equinox.start(); + } catch (BundleException e) { + fail("Failed to start the framework", e); //$NON-NLS-1$ + } + try { + equinox.stop(); + } catch (BundleException e) { + fail("Unexpected erorr stopping framework", e); //$NON-NLS-1$ + } + try { + equinox.waitForStop(10000); + } catch (InterruptedException e) { + fail("Unexpected interrupted exception", e); //$NON-NLS-1$ + } + assertEquals("Wrong state for SystemBundle", Bundle.RESOLVED, equinox.getState()); //$NON-NLS-1$ + } + private static File[] createBundles(File outputDir, int bundleCount) throws IOException { outputDir.mkdirs(); |