diff options
author | Thomas Watson | 2010-01-18 22:42:18 +0000 |
---|---|---|
committer | Thomas Watson | 2010-01-18 22:42:18 +0000 |
commit | 40380095090e4eb7a7eb1c8d3a2e90a4567eb429 (patch) | |
tree | cabf8b90f105041a735813ed2783c32f3ea403b4 /bundles/org.eclipse.osgi.tests | |
parent | 8017429296473c74302ade54f86462d0d411d2a9 (diff) | |
download | rt.equinox.framework-40380095090e4eb7a7eb1c8d3a2e90a4567eb429.tar.gz rt.equinox.framework-40380095090e4eb7a7eb1c8d3a2e90a4567eb429.tar.xz rt.equinox.framework-40380095090e4eb7a7eb1c8d3a2e90a4567eb429.zip |
delay hack to allow thread to block on waitForStop before we update.v20100118
Diffstat (limited to 'bundles/org.eclipse.osgi.tests')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java | 8 |
1 files changed, 7 insertions, 1 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 1893d57c8..09dc0a8bb 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2009 IBM Corporation and others. + * Copyright (c) 2008, 2010 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 @@ -582,6 +582,12 @@ public class SystemBundleTests extends AbstractBundleTests { }, "test waitForStop thread"); //$NON-NLS-1$ t.start(); try { + // delay hack to allow t thread to block on waitForStop before we update. + Thread.sleep(500); + } catch (InterruptedException e) { + fail("unexpected interuption", e); + } + try { equinox.update(); } catch (BundleException e) { fail("Failed to update the framework", e); //$NON-NLS-1$ |