aboutsummaryrefslogtreecommitdiff
path: root/testes/gc.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-12-14 12:50:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-12-14 12:50:05 -0300
commit066e0f93c4901e601d93e31fb700f8f66f95feb8 (patch)
tree8b7464bbc4bbe12db97eb34f3b28874caffd1411 /testes/gc.lua
parent0bfc572e51d9035a615ef6e9523f736c9ffa8e57 (diff)
downloadlua-066e0f93c4901e601d93e31fb700f8f66f95feb8.tar.gz
lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.tar.bz2
lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.zip
Fix debug information about finalizers
The flag CIST_FIN does not mark a finalizer, but the function that was running when the finalizer was called. (So, the function did not call the finalizer, but it looks that way in the stack.)
Diffstat (limited to '')
-rw-r--r--testes/gc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/gc.lua b/testes/gc.lua
index d865cb28..381c5548 100644
--- a/testes/gc.lua
+++ b/testes/gc.lua
@@ -371,7 +371,7 @@ if T then
371 371
372 warn("@on"); warn("@store") 372 warn("@on"); warn("@store")
373 collectgarbage() 373 collectgarbage()
374 assert(string.find(_WARN, "error in __gc metamethod")) 374 assert(string.find(_WARN, "error in __gc"))
375 assert(string.match(_WARN, "@(.-)@") == "expected"); _WARN = false 375 assert(string.match(_WARN, "@(.-)@") == "expected"); _WARN = false
376 for i = 8, 10 do assert(s[i]) end 376 for i = 8, 10 do assert(s[i]) end
377 377