aboutsummaryrefslogtreecommitdiff
path: root/testes/locals.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/locals.lua')
-rw-r--r--testes/locals.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/testes/locals.lua b/testes/locals.lua
index 2c48546d..090d846b 100644
--- a/testes/locals.lua
+++ b/testes/locals.lua
@@ -728,14 +728,8 @@ if rawget(_G, "T") then
728 -- first buffer was released by 'toclose' 728 -- first buffer was released by 'toclose'
729 assert(T.totalmem() - m <= extra) 729 assert(T.totalmem() - m <= extra)
730 730
731 -- error in creation of final string 731 -- userdata, buffer, final string
732 T.totalmem(m + 2 * lim + extra) 732 T.totalmem(m + 2*lim + extra)
733 assert(not pcall(table.concat, a))
734 -- second buffer was released by 'toclose'
735 assert(T.totalmem() - m <= extra)
736
737 -- userdata, buffer, buffer, final string
738 T.totalmem(m + 4*lim + extra)
739 assert(#table.concat(a) == 2*lim) 733 assert(#table.concat(a) == 2*lim)
740 734
741 T.totalmem(0) -- remove memory limit 735 T.totalmem(0) -- remove memory limit