Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Duft2017-08-07 11:20:26 +0000
committerMarkus Duft2017-08-07 11:21:32 +0000
commit8df4ce30969f1cca45747373252de64a5077c840 (patch)
tree48f1d690dcdc6bb0db84ccda0bee63cad3df9b78 /org.eclipse.debug.tests
parent0bbc5012c2fd32f76a7cebebb0698d9e6ed1e0f8 (diff)
downloadeclipse.platform.debug-8df4ce30969f1cca45747373252de64a5077c840.tar.gz
eclipse.platform.debug-8df4ce30969f1cca45747373252de64a5077c840.tar.xz
eclipse.platform.debug-8df4ce30969f1cca45747373252de64a5077c840.zip
Bug 519684 - don't execute post launch actions when adopting
When adopting already existing launches, the group should not execute that launches post launch action. Also notification about a launched group element can/must be inhibited. Change-Id: I3e162f376eb6a47a4580f4ddb20257962b33ed53 Signed-off-by: Markus Duft <markus.duft@ssi-schaefer.com>
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchGroupTests.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchGroupTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchGroupTests.java
index 8799b6f60..14ff10660 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchGroupTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/LaunchGroupTests.java
@@ -234,16 +234,19 @@ public class LaunchGroupTests extends AbstractLaunchTest {
final ILaunchConfiguration grp = createLaunchGroup(DEF_GRP_NAME, createLaunchGroupElement(t1, GroupElementPostLaunchAction.NONE, null, false));
final ILaunchConfiguration grp2 = createLaunchGroup("Group 2", createLaunchGroupElement(grp, GroupElementPostLaunchAction.NONE, null, false)); //$NON-NLS-1$
- final ILaunchConfiguration grp3 = createLaunchGroup("Group 3", createLaunchGroupElement(grp2, GroupElementPostLaunchAction.NONE, null, false), createLaunchGroupElement(t1, GroupElementPostLaunchAction.NONE, null, true)); //$NON-NLS-1$
+ final ILaunchConfiguration grp3 = createLaunchGroup("Group 3", createLaunchGroupElement(grp2, GroupElementPostLaunchAction.NONE, null, false), createLaunchGroupElement(t1, GroupElementPostLaunchAction.DELAY, 10, true)); //$NON-NLS-1$
// attention: need to do this before launching!
LaunchHistory runHistory = getRunLaunchHistory();
lcToCount = t1;
getLaunchManager().addLaunchListener(lcListener);
+
+ long startTime = System.currentTimeMillis();
grp3.launch(ILaunchManager.RUN_MODE, new NullProgressMonitor());
ILaunchConfiguration[] history = runHistory.getHistory();
+ assertTrue("post launch should not be run", (System.currentTimeMillis() - startTime) < 9_000); //$NON-NLS-1$
assertEquals(4, history.length);
assertTrue("history[0] should be Group 3", history[0].contentsEqual(grp3)); //$NON-NLS-1$
assertTrue("history[1] should be Group 2", history[1].contentsEqual(grp2)); //$NON-NLS-1$

Back to the top