diff options
author | Thomas Watson | 2015-08-26 18:51:44 +0000 |
---|---|---|
committer | Thomas Watson | 2015-08-26 18:51:44 +0000 |
commit | e06dc5f8aa8f053673af0aa29c5b517addc9af65 (patch) | |
tree | 10783e276bd4f83cbc4a3582863c5b3bbc470198 /bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container | |
parent | edef6f0e98107e1e21a131a3f22f2c764d31fab8 (diff) | |
download | rt.equinox.framework-e06dc5f8aa8f053673af0aa29c5b517addc9af65.tar.gz rt.equinox.framework-e06dc5f8aa8f053673af0aa29c5b517addc9af65.tar.xz rt.equinox.framework-e06dc5f8aa8f053673af0aa29c5b517addc9af65.zip |
Bug 475760 - Bundles with a header "Bundle-NativeCode = *" lead to an invalid filter being generated "(|)"
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container/TestModuleContainer.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container/TestModuleContainer.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container/TestModuleContainer.java index 2981cdb99..b420fe27c 100644 --- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container/TestModuleContainer.java +++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/container/TestModuleContainer.java @@ -1955,6 +1955,16 @@ public class TestModuleContainer extends AbstractTest { Assert.assertEquals("Wrong bundle provider", a.getCurrentRevision(), bundleWires.get(0).getProvider()); } + @Test + public void testBadNativeCode() throws IOException { + try { + OSGiManifestBuilderFactory.createBuilder(getManifest("bad.native.code.MF")); + } catch (BundleException e) { + Assert.assertEquals("Wrong exception type.", BundleException.MANIFEST_ERROR, e.getType()); + } + + } + private static void assertWires(List<ModuleWire> required, List<ModuleWire>... provided) { for (ModuleWire requiredWire : required) { for (List<ModuleWire> providedList : provided) { |