Browse Source

GC test was not restarting collector after pause

Roberto Ierusalimschy 1 year ago
parent
commit
97ef8e7bd4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      testes/gc.lua

+ 2 - 1
testes/gc.lua

@@ -65,10 +65,11 @@ do  print("steps")
     return i    -- number of steps
   end
 
-  collectgarbage"stop"
 
   if not _port then
+    collectgarbage"stop"
     assert(dosteps(10) < dosteps(2))
+    collectgarbage"restart"
   end
 
 end