Sfoglia il codice sorgente

GC test was not restarting collector after pause

Roberto Ierusalimschy 1 anno fa
parent
commit
97ef8e7bd4
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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