mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
save another 33s of CI for tests/gc/gcleak.nim
This commit is contained in:
committed by
Andreas Rumpf
parent
fdc5925cbd
commit
73f5f1e80c
@@ -12,7 +12,14 @@ type
|
||||
proc makeObj(): TTestObj =
|
||||
result.x = "Hello"
|
||||
|
||||
for i in 1 .. 100_000:
|
||||
const numIter =
|
||||
# see tests/gc/gcleak2.nim
|
||||
when defined(boehmgc):
|
||||
1_000
|
||||
elif defined(gcMarkAndSweep): 10_000
|
||||
else: 100_000
|
||||
|
||||
for i in 1 .. numIter:
|
||||
when defined(gcMarkAndSweep) or defined(boehmgc):
|
||||
GC_fullcollect()
|
||||
var obj = makeObj()
|
||||
|
||||
Reference in New Issue
Block a user