Fix gc tests for BoehmGC (#7094)

This commit is contained in:
Sergey Avseyev 2018-01-18 11:04:32 +03:00 • committed by Andreas Rumpf
commit d9c922fc70
3 changed files with 3 additions and 6 deletions

View file

@ -16,7 +16,7 @@ proc MakeObj(): TTestObj =
proc inProc() =
for i in 1 .. 1_000_000:
when defined(gcMarkAndSweep):
when defined(gcMarkAndSweep) or defined(boehmgc):
GC_fullcollect()
var obj: TTestObj
obj = MakeObj()
@ -24,5 +24,3 @@ proc inProc() =
inProc()
echo "no leak: ", getOccupiedMem()