aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-05-29 17:16:30 (EDT)
committerEugene Tarassov2012-05-29 23:05:19 (EDT)
commit328628136b6ad75307c77863ab1d05e93aa48d84 (patch)
tree0ebc07a6957f1af3b0df8ffa72a9e46ed4353640
parent6bf5d2bf3de1bb82ad2e386fe77bb78738532420 (diff)
downloadorg.eclipse.tcf-328628136b6ad75307c77863ab1d05e93aa48d84.zip
org.eclipse.tcf-328628136b6ad75307c77863ab1d05e93aa48d84.tar.gz
org.eclipse.tcf-328628136b6ad75307c77863ab1d05e93aa48d84.tar.bz2
Bug 380607 - [tests] Intermittent failure in SampleTest.testSteppingDebugViewOnly
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java
index d09d152..8bbcfae 100644
--- a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java
+++ b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java
@@ -628,6 +628,12 @@ public abstract class AbstractTcfUITest extends TcfTestCase implements IViewerUp
fDebugViewListener.addLabelUpdate(new TreePath(new Object[] { fLaunch, processTCFContext, threadTCFContext }));
startProcess();
+
+ // Make sure that delta is posted after launching process so that it doesn't interfere
+ // with the waiting for the whole viewer to update after breakpoint hit (below).
+ fDebugViewListener.waitTillFinished(MODEL_CHANGED_COMPLETE);
+ fDebugViewListener.resetModelChanged();
+
runToTestEntry(testFunc);
removeBreakpoint(bpId);