summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-17 13:20:45 +0200
committerAraq <rumpf_a@web.de>2018-10-17 13:20:45 +0200
commit81e33b9d874cd400d61b0e9df21e7367ea430dc3 (patch)
tree25fdbdcf8852e94b002122e9d560a7da604caa1a
parentbd9d5787f06a1f3e259055268824a852cd160798 (diff)
downloadNim-81e33b9d874cd400d61b0e9df21e7367ea430dc3.tar.gz
make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs
-rw-r--r--tests/ccgbugs/tmarkerproc_regression.nim6
-rw-r--r--tests/gc/thavlak.nim10
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/ccgbugs/tmarkerproc_regression.nim b/tests/ccgbugs/tmarkerproc_regression.nim
index 261f746fc..99b38e3ec 100644
--- a/tests/ccgbugs/tmarkerproc_regression.nim
+++ b/tests/ccgbugs/tmarkerproc_regression.nim
@@ -34,11 +34,11 @@ proc foo(x: string): VersionRange =
   result.ver = Version(x)
 
 proc main =
-  var a: array[5000, VersionRange]
-  for i in 0 ..< 5000:
+  var a: array[500, VersionRange]
+  for i in 0 ..< 500:
     a[i] = foo($i & "some longer text here " & $i)
   GC_fullcollect()
-  for i in 0 ..< 5000:
+  for i in 0 ..< 500:
     let expected = $i & "some longer text here " & $i
     if a[i].ver.string != expected:
       quit "bug!"
diff --git a/tests/gc/thavlak.nim b/tests/gc/thavlak.nim
index cc0095fbc..09c07785e 100644
--- a/tests/gc/thavlak.nim
+++ b/tests/gc/thavlak.nim
@@ -5,9 +5,9 @@ Constructing Simple CFG...
 Constructing CFG...
 Performing Loop Recognition
 1 Iteration
-Another 50 iterations...
-..................................................
-Found 1 loops (including artificial root node) (50)'''
+Another 5 iterations...
+.....
+Found 1 loops (including artificial root node) (5)'''
 """
 
 # bug #3184
@@ -442,10 +442,10 @@ proc run(self: var LoopTesterApp) =
   var h = newHavlakLoopFinder(self.cfg, newLsg())
   var loops = h.findLoops
 
-  echo "Another 50 iterations..."
+  echo "Another 5 iterations..."
 
   var sum = 0
-  for i in 1..50:
+  for i in 1..5:
     write stdout, "."
     flushFile(stdout)
     var hlf = newHavlakLoopFinder(self.cfg, newLsg())