Bug 414851 - SeparateVMTests has random failures - throw
TestAgainException when launching / suspending fails
diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
index e9d9222..ff1450a 100644
--- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
+++ b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
@@ -488,7 +488,6 @@
waiter.setTimeout(timeout);
Object terminatee = launchAndWait(config, waiter);
- assertNotNull("Program did not terminate.", terminatee); //$NON-NLS-1$
assertTrue("terminatee is not an IProcess", terminatee instanceof IProcess); //$NON-NLS-1$
IProcess process = (IProcess) terminatee;
boolean terminated = process.isTerminated();
@@ -516,10 +515,9 @@
}
catch (CoreException e) {
e.printStackTrace();
- fail("Program did not suspend, and unable to terminate launch."); //$NON-NLS-1$
}
+ throw new TestAgainException("Retest - Program did not suspend launching: " + configuration.getName()); //$NON-NLS-1$
}
- assertNotNull("Program did not suspend, launch terminated.", suspendee); //$NON-NLS-1$
boolean terminated = launch.isTerminated();
assertTrue("launch did not terminate", terminated); //$NON-NLS-1$
if (terminated && !ConsoleLineTracker.isClosed()) {