Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2015-06-03 00:37:10 -0400
committerEugene Tarassov2015-06-03 00:37:10 -0400
commitaa53af86d0bbcc55a41f41953addcfab7d2ec0aa (patch)
tree0457768d9afde1d8134963f1c9b25d03e92df1b7
parentd2871d38fed5aa89fa6876ea5043bc007c37dbb0 (diff)
downloadorg.eclipse.tcf-aa53af86d0bbcc55a41f41953addcfab7d2ec0aa.tar.gz
org.eclipse.tcf-aa53af86d0bbcc55a41f41953addcfab7d2ec0aa.tar.xz
org.eclipse.tcf-aa53af86d0bbcc55a41f41953addcfab7d2ec0aa.zip
TCF Tests: less frequent memory map changes to make tests to run faster
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java2
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestRCBP1.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
index d9a74acfc..464faa4bf 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java
@@ -928,7 +928,7 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone,
// Use MemoryMap service to generate "memory map changed" event.
// The event invalidates any cached symbols info.
if (srv_memory_map == null) return;
- if (rnd.nextInt(11) != 0) return;
+ if (rnd.nextInt(101) != 0) return;
ArrayList<MemoryRegion> l = null;
if (mem_map != null) l = mem_map.get(process_id);
if (l == null) l = new ArrayList<MemoryRegion>();
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 d0795e59a..2a9ef861e 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
@@ -1907,7 +1907,7 @@ class TestRCBP1 implements ITCFTest, RunControl.DiagnosticTestDone, IRunControl.
// Use MemoryMap service to generate "memory map changed" event.
// The event invalidates any cached symbols info.
if (srv_memory_map == null) return;
- if (rnd.nextInt(11) != 0) return;
+ if (rnd.nextInt(101) != 0) return;
ArrayList<MemoryRegion> l = null;
String process_id = test_context.getProcessID();
if (mem_map != null) l = mem_map.get(process_id);

Back to the top