Browse Source

GC test was not restarting collector after pause

Roberto Ierusalimschy 1 năm trước cách đây
mục cha
commit
97ef8e7bd4
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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