aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-05-25 00:24:37 (EDT)
committerEugene Tarassov2012-05-25 16:52:29 (EDT)
commit1dd6a7104d6f6bf429308b52e596ad4bcdc01c51 (patch)
tree0ebf0ee33dfb86338b6780425180ee05c286e291
parentf9559dd4007332dfd25b7585330a986441bb9852 (diff)
downloadorg.eclipse.tcf-1dd6a7104d6f6bf429308b52e596ad4bcdc01c51.zip
org.eclipse.tcf-1dd6a7104d6f6bf429308b52e596ad4bcdc01c51.tar.gz
org.eclipse.tcf-1dd6a7104d6f6bf429308b52e596ad4bcdc01c51.tar.bz2
Bug 380607 - [tests] Intermittent failure in SampleTest.testSteppingDebugViewOnly
Add more diagnostic output upon test failure.
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java
index 774bae2..6779f8f 100644
--- a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java
+++ b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/SampleTest.java
@@ -70,7 +70,9 @@ public class SampleTest extends AbstractTcfUITest {
fDebugViewListener.waitTillFinished(MODEL_CHANGED_COMPLETE | CONTENT_SEQUENCE_COMPLETE | LABEL_UPDATES_RUNNING);
VirtualItem topFrameItem = fDebugViewListener.findElement(
new Pattern[] { Pattern.compile(".*"), Pattern.compile(".*"), Pattern.compile(".*" + fProcessId + ".*\\(Step.*"), Pattern.compile(".*")});
- Assert.assertTrue(topFrameItem != null);
+ if (topFrameItem == null) {
+ Assert.fail("Top stack frame not found. \n\nDebug view dump: \n:" + fDebugViewViewer.toString());
+ }
String topFrameLabel = ((String[])topFrameItem.getData(VirtualItem.LABEL_KEY))[0];
Assert.assertTrue(!topFrameLabel.equals(previousThreadLabel));
previousThreadLabel = topFrameLabel;
@@ -83,8 +85,6 @@ public class SampleTest extends AbstractTcfUITest {
initProcessModel("tcf_test_func0");
-
-
// Execute step loop
String previousThreadLabel = null;
for (int stepNum = 0; stepNum < 100; stepNum++) {