Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.osgi.tests/plugin.xml2
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/appadmin/ApplicationAdminTest.java10
2 files changed, 8 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi.tests/plugin.xml b/bundles/org.eclipse.osgi.tests/plugin.xml
index 69e6db358..b27d6ae5d 100644
--- a/bundles/org.eclipse.osgi.tests/plugin.xml
+++ b/bundles/org.eclipse.osgi.tests/plugin.xml
@@ -27,7 +27,7 @@
id="testCardinality01"
point="org.eclipse.core.runtime.applications">
<application
- cardinality="10"
+ cardinality="5"
thread="any"
visible="true">
<run
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/appadmin/ApplicationAdminTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/appadmin/ApplicationAdminTest.java
index 4a595d4b8..63d84b7eb 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/appadmin/ApplicationAdminTest.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/appadmin/ApplicationAdminTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2013 IBM Corporation and others.
+ * Copyright (c) 2007, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -665,8 +665,12 @@ public class ApplicationAdminTest extends OSGiTest {
ArrayList instances = new ArrayList();
int i = 0;
try {
- for (; i <= cardinality; i++)
+ for (; i <= cardinality; i++) {
instances.add(app.launch(null));
+ if (i == cardinality && hasMax) {
+ fail("Expected an ApplicationException.");
+ }
+ }
} catch (ApplicationException e) {
if (!hasMax || i != cardinality)
fail("Unexpected ApplicationException", e); //$NON-NLS-1$
@@ -680,7 +684,7 @@ public class ApplicationAdminTest extends OSGiTest {
}
public void testCardinality01() {
- doTestCardinality01(PI_OSGI_TESTS + ".testCardinality01", 10, true); //$NON-NLS-1$
+ doTestCardinality01(PI_OSGI_TESTS + ".testCardinality01", 5, true); //$NON-NLS-1$
}
public void testCardinality02() {

Back to the top