Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2019-07-01 15:09:08 -0400
committerEugene Tarassov2019-07-01 15:09:08 -0400
commit9dbcddb9fc5ae2a671276f94bea6e03e29440990 (patch)
tree731cfcf8487cff4af1278214bc12335207b21d62
parente2e9bb5e97907957844b1704ba9d994cdfdd2337 (diff)
downloadorg.eclipse.tcf-9dbcddb9fc5ae2a671276f94bea6e03e29440990.tar.gz
org.eclipse.tcf-9dbcddb9fc5ae2a671276f94bea6e03e29440990.tar.xz
org.eclipse.tcf-9dbcddb9fc5ae2a671276f94bea6e03e29440990.zip
TCF Tests: improved run control testHEADmaster
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java
index d6af5006f..52cb7071e 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java
@@ -1078,9 +1078,6 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
assert isMyContext(ctx);
threads.put(id, ctx);
}
- if (id.equals(test_ctx_id) && ctx.getProperties().get("DiagnosticTestProcess") == null) {
- testDone(id);
- }
}
}
@@ -1130,15 +1127,22 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
if (threads.remove(id) != null && threads.isEmpty()) {
if (bp_cnt != 40) {
exit(new Exception("Test main thread breakpoint count = " + bp_cnt + ", expected 40"));
+ return;
}
if (data_bp_id != null && data_bp_cnt != 10) {
exit(new Exception("Test main thread data breakpoint count = " + data_bp_cnt + ", expected 10"));
+ return;
}
if (temp_bp_id != null && temp_bp_cnt != 1) {
exit(new Exception("Temporary breakpoint count = " + temp_bp_cnt + ", expected 1"));
+ return;
}
}
if (id.equals(test_ctx_id)) {
+ if (!all_setup_done) {
+ exit(new Exception("Test process exited too soon"));
+ return;
+ }
test_done = true;
runTest();
}

Back to the top