diff options
Diffstat (limited to 'testes')
-rw-r--r-- | testes/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/main.lua b/testes/main.lua index dde72a74..5c7d0a10 100644 --- a/testes/main.lua +++ b/testes/main.lua | |||
@@ -312,7 +312,7 @@ setmetatable({}, {__gc = function () | |||
312 | -- this finalizer should not be called, as object will be | 312 | -- this finalizer should not be called, as object will be |
313 | -- created after 'lua_close' has been called | 313 | -- created after 'lua_close' has been called |
314 | setmetatable({}, {__gc = function () print(3) end}) | 314 | setmetatable({}, {__gc = function () print(3) end}) |
315 | print(collectgarbage()) -- cannot call collector here | 315 | print(collectgarbage() or false) -- cannot call collector here |
316 | os.exit(0, true) | 316 | os.exit(0, true) |
317 | end}) | 317 | end}) |
318 | ]] | 318 | ]] |
@@ -322,7 +322,7 @@ creating 1 | |||
322 | creating 2 | 322 | creating 2 |
323 | 2 | 323 | 2 |
324 | creating 3 | 324 | creating 3 |
325 | nil | 325 | false |
326 | 1 | 326 | 1 |
327 | ]] | 327 | ]] |
328 | 328 | ||