Преглед на файлове

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