2
0
Эх сурвалжийг харах

GC test was not restarting collector after pause

Roberto Ierusalimschy 1 жил өмнө
parent
commit
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