diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-21 01:52:19 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-03-27 00:12:22 +0300 |
commit | 666d85d3ce80c19c9cd2acd156edbf50fd7e8741 (patch) | |
tree | eb585d70ad318c36d34e83dfe1ea7afec64cbc8e /test/functional/lua/luaeval_spec.lua | |
parent | 53b89c1dcf44c95827cc85a9657faee451c573c5 (diff) | |
download | rneovim-666d85d3ce80c19c9cd2acd156edbf50fd7e8741.tar.gz rneovim-666d85d3ce80c19c9cd2acd156edbf50fd7e8741.tar.bz2 rneovim-666d85d3ce80c19c9cd2acd156edbf50fd7e8741.zip |
functests: Some more tests
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
-rw-r--r-- | test/functional/lua/luaeval_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua index 345848cfff..b0169c3d6b 100644 --- a/test/functional/lua/luaeval_spec.lua +++ b/test/functional/lua/luaeval_spec.lua @@ -241,4 +241,11 @@ describe('luaeval()', function() eq('Vim(call):E5108: Error while calling lua chunk for luaeval(): [string "<VimL compiled string>"]:1: ERROR', exc_exec([[call luaeval("error('ERROR')")]])) end) + + it('does not leak memory when called with too long line with syntax error', + 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 ..[[' + )")]])) + end) end) |