Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-10-29 14:46:13 -0400
committerEugene Tarassov2014-10-29 14:46:13 -0400
commitc06529ca22506132e69acd157ab19e56a8f4c95c (patch)
tree1c96addaab86d7d0c4da42087e016cd85364e265 /plugins/org.eclipse.tcf.debug
parent3d30d59683766ef734796030b63574de8d8f81ab (diff)
downloadorg.eclipse.tcf-c06529ca22506132e69acd157ab19e56a8f4c95c.tar.gz
org.eclipse.tcf-c06529ca22506132e69acd157ab19e56a8f4c95c.tar.xz
org.eclipse.tcf-c06529ca22506132e69acd157ab19e56a8f4c95c.zip
TCF Tests: added test for breakpoint type "Software"
Diffstat (limited to 'plugins/org.eclipse.tcf.debug')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java13
1 files changed, 13 insertions, 0 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 15c429e05..deaa3609f 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
@@ -581,6 +581,7 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
private void iniBreakpoints() {
assert !bp_set_done;
assert bp_list.isEmpty();
+ Boolean bp_type_ok = (Boolean)bp_capabilities.get(IBreakpoints.CAPABILITY_BREAKPOINT_TYPE);
Map<String,Object> m[] = new Map[10];
for (int i = 0; i < m.length; i++) {
m[i] = new HashMap<String,Object>();
@@ -606,6 +607,12 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
m[i].put(IBreakpoints.PROP_LOCATION, "(31+1)/16+tcf_test_func1-2");
// Condition is always true
m[i].put(IBreakpoints.PROP_CONDITION, "tcf_test_func0!=tcf_test_func1");
+ if (bp_type_ok != null && bp_type_ok.booleanValue()) {
+ switch (rnd.nextInt(4)) {
+ case 0: m[i].put(IBreakpoints.PROP_TYPE, IBreakpoints.TYPE_SOFTWARE); break;
+ case 1: m[i].put(IBreakpoints.PROP_TYPE, IBreakpoints.TYPE_AUTO); break;
+ }
+ }
break;
case 4:
// Disabled breakpoint
@@ -619,6 +626,12 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
break;
case 6:
m[i].put(IBreakpoints.PROP_LOCATION, "tcf_test_func3");
+ if (bp_type_ok != null && bp_type_ok.booleanValue()) {
+ switch (rnd.nextInt(4)) {
+ case 0: m[i].put(IBreakpoints.PROP_TYPE, IBreakpoints.TYPE_SOFTWARE); break;
+ case 1: m[i].put(IBreakpoints.PROP_TYPE, IBreakpoints.TYPE_AUTO); break;
+ }
+ }
break;
case 7:
// Data breakpoint

Back to the top