Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleInstallUpdateTests.java')
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleInstallUpdateTests.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleInstallUpdateTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleInstallUpdateTests.java
index 4d603a0f9..92048c5b4 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleInstallUpdateTests.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/BundleInstallUpdateTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2011 IBM Corporation and others.
+ * Copyright (c) 2009, 2015 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
@@ -272,4 +272,22 @@ public class BundleInstallUpdateTests extends AbstractBundleTests {
reg.unregister();
}
}
+
+ public void testInstallWithInterruption() {
+ Bundle test = null;
+ Thread.currentThread().interrupt();
+ try {
+ test = installer.installBundle("test"); //$NON-NLS-1$
+ } catch (BundleException e) {
+ fail("Unexpected failure", e); //$NON-NLS-1$
+ } finally {
+ Thread.interrupted();
+ try {
+ if (test != null)
+ test.uninstall();
+ } catch (BundleException e) {
+ // nothing
+ }
+ }
+ }
}

Back to the top