make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs

(cherry picked from commit 81e33b9d87)
This commit is contained in:
Araq
2018-10-17 13:20:45 +02:00
committed by narimiran
parent 64f5c96685
commit 13a8765afc
2 changed files with 8 additions and 8 deletions

View File

@@ -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!"

View File

@@ -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())