diff options
Diffstat (limited to 'testes')
-rw-r--r-- | testes/gengc.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/testes/gengc.lua b/testes/gengc.lua index 3d4f67f8..d708d7fc 100644 --- a/testes/gengc.lua +++ b/testes/gengc.lua | |||
@@ -162,9 +162,16 @@ end | |||
162 | assert(collectgarbage'isrunning') | 162 | assert(collectgarbage'isrunning') |
163 | 163 | ||
164 | 164 | ||
165 | do print"testing stop-the-world collection" | ||
166 | collectgarbage("incremental", nil, 0) | ||
165 | 167 | ||
166 | -- just to make sure | 168 | -- each step does a complete cycle |
167 | assert(collectgarbage'isrunning') | 169 | assert(collectgarbage("step")) |
170 | assert(collectgarbage("step")) | ||
171 | |||
172 | -- back to default value | ||
173 | collectgarbage("incremental", nil, 200) | ||
174 | end | ||
168 | 175 | ||
169 | collectgarbage(oldmode) | 176 | collectgarbage(oldmode) |
170 | 177 | ||