summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-27 02:30:31 -0800
committerAndreas Rumpf <rumpf_a@web.de>2020-02-27 13:19:31 +0100
commit73f5f1e80c9baf29c4d49dda7fa41351bb2b2400 (patch)
treecaeb07dab42ccad29c59675943c8301ac6e253d1
parentfdc5925cbdd53ea8b2877fb56de5a1e5a3025a0c (diff)
downloadNim-73f5f1e80c9baf29c4d49dda7fa41351bb2b2400.tar.gz
save another 33s of CI for tests/gc/gcleak.nim
-rw-r--r--tests/gc/gcleak.nim9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/gc/gcleak.nim b/tests/gc/gcleak.nim
index 0b2e6e14d..0bf993968 100644
--- a/tests/gc/gcleak.nim
+++ b/tests/gc/gcleak.nim
@@ -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()