mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
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:
@@ -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!"
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user