aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/luaeval_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-29 19:32:01 +0300
committerZyX <kp-pav@yandex.ru>2017-03-27 00:12:42 +0300
commit295e7607c472b49e8c0762977e38c4527b746b6f (patch)
tree8c4587dd79f911ceb5a83d1553332cf7ec4f4a35 /test/functional/lua/luaeval_spec.lua
parente1bbaca7acf7fc498da49081d069b00aa05506df (diff)
downloadrneovim-295e7607c472b49e8c0762977e38c4527b746b6f.tar.gz
rneovim-295e7607c472b49e8c0762977e38c4527b746b6f.tar.bz2
rneovim-295e7607c472b49e8c0762977e38c4527b746b6f.zip
executor: Fix some memory leaks
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
-rw-r--r--test/functional/lua/luaeval_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua
index 5d0180b212..7973cabae4 100644
--- a/test/functional/lua/luaeval_spec.lua
+++ b/test/functional/lua/luaeval_spec.lua
@@ -243,10 +243,11 @@ describe('luaeval()', function()
exc_exec([[call luaeval("error('ERROR')")]]))
end)
- it('does not leak memory when called with too long line with syntax error',
+ it('does not leak memory when called with too long line',
function()
local s = ('x'):rep(65536)
eq('Vim(call):E5107: Error while creating lua chunk for luaeval(): [string "<VimL compiled string>"]:1: unexpected symbol near \')\'',
exc_exec([[call luaeval("(']] .. s ..[[' + )")]]))
+ eq(s, funcs.luaeval('"' .. s .. '"'))
end)
end)