diff options
Diffstat (limited to '')
-rw-r--r-- | testes/gengc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testes/gengc.lua b/testes/gengc.lua index 51872cc1..c4f6ca1b 100644 --- a/testes/gengc.lua +++ b/testes/gengc.lua | |||
@@ -163,15 +163,17 @@ assert(collectgarbage'isrunning') | |||
163 | 163 | ||
164 | 164 | ||
165 | do print"testing stop-the-world collection" | 165 | do print"testing stop-the-world collection" |
166 | local step = collectgarbage("setparam", "stepsize", 0); | 166 | local step = collectgarbage("param", "stepsize", 0); |
167 | collectgarbage("incremental") | 167 | collectgarbage("incremental") |
168 | assert(collectgarbage("param", "stepsize") == 0) | ||
168 | 169 | ||
169 | -- each step does a complete cycle | 170 | -- each step does a complete cycle |
170 | assert(collectgarbage("step")) | 171 | assert(collectgarbage("step")) |
171 | assert(collectgarbage("step")) | 172 | assert(collectgarbage("step")) |
172 | 173 | ||
173 | -- back to default value | 174 | -- back to default value |
174 | collectgarbage("setparam", "stepsize", step); | 175 | collectgarbage("param", "stepsize", step); |
176 | assert(collectgarbage("param", "stepsize") == step) | ||
175 | end | 177 | end |
176 | 178 | ||
177 | collectgarbage(oldmode) | 179 | collectgarbage(oldmode) |