summary refs log tree commit diff stats
path: root/tests/gc/gcleak2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gc/gcleak2.nim')
-rwxr-xr-xtests/gc/gcleak2.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gc/gcleak2.nim b/tests/gc/gcleak2.nim
index a50541fbc..41d149bed 100755
--- a/tests/gc/gcleak2.nim
+++ b/tests/gc/gcleak2.nim
@@ -15,7 +15,9 @@ proc MakeObj(): TTestObj =
   result.s = @[1,2,3]
 
 proc inProc() = 
-  for i in 1 .. 100_000_000:
+  for i in 1 .. 1_000_000:
+    when defined(gcMarkAndSweep):
+      GC_fullcollect()
     var obj: TTestObj
     obj = MakeObj()
     if getOccupiedMem() > 300_000: quit("still a leak!")