make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs
This commit is contained in:
parent
bd9d5787f0
commit
81e33b9d87
2 changed files with 8 additions and 8 deletions
|
|
@ -34,11 +34,11 @@ proc foo(x: string): VersionRange =
|
||||||
result.ver = Version(x)
|
result.ver = Version(x)
|
||||||
|
|
||||||
proc main =
|
proc main =
|
||||||
var a: array[5000, VersionRange]
|
var a: array[500, VersionRange]
|
||||||
for i in 0 ..< 5000:
|
for i in 0 ..< 500:
|
||||||
a[i] = foo($i & "some longer text here " & $i)
|
a[i] = foo($i & "some longer text here " & $i)
|
||||||
GC_fullcollect()
|
GC_fullcollect()
|
||||||
for i in 0 ..< 5000:
|
for i in 0 ..< 500:
|
||||||
let expected = $i & "some longer text here " & $i
|
let expected = $i & "some longer text here " & $i
|
||||||
if a[i].ver.string != expected:
|
if a[i].ver.string != expected:
|
||||||
quit "bug!"
|
quit "bug!"
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ Constructing Simple CFG...
|
||||||
Constructing CFG...
|
Constructing CFG...
|
||||||
Performing Loop Recognition
|
Performing Loop Recognition
|
||||||
1 Iteration
|
1 Iteration
|
||||||
Another 50 iterations...
|
Another 5 iterations...
|
||||||
..................................................
|
.....
|
||||||
Found 1 loops (including artificial root node) (50)'''
|
Found 1 loops (including artificial root node) (5)'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# bug #3184
|
# bug #3184
|
||||||
|
|
@ -442,10 +442,10 @@ proc run(self: var LoopTesterApp) =
|
||||||
var h = newHavlakLoopFinder(self.cfg, newLsg())
|
var h = newHavlakLoopFinder(self.cfg, newLsg())
|
||||||
var loops = h.findLoops
|
var loops = h.findLoops
|
||||||
|
|
||||||
echo "Another 50 iterations..."
|
echo "Another 5 iterations..."
|
||||||
|
|
||||||
var sum = 0
|
var sum = 0
|
||||||
for i in 1..50:
|
for i in 1..5:
|
||||||
write stdout, "."
|
write stdout, "."
|
||||||
flushFile(stdout)
|
flushFile(stdout)
|
||||||
var hlf = newHavlakLoopFinder(self.cfg, newLsg())
|
var hlf = newHavlakLoopFinder(self.cfg, newLsg())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue