Преглед изворни кода

GC test was not restarting collector after pause

Roberto Ierusalimschy пре 1 година
родитељ
комит
97ef8e7bd4
1 измењених фајлова са 2 додато и 1 уклоњено
  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