mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: cover msgpackparse() regression
This commit is contained in:
parent
029b58e417
commit
5a19585865
@ -603,4 +603,13 @@ describe('msgpack*() functions', function()
|
|||||||
eq('Vim(let):E475: Invalid argument: container references itself',
|
eq('Vim(let):E475: Invalid argument: container references itself',
|
||||||
eval('exception'))
|
eval('exception'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('msgpackparse(systemlist(...)) does not segfault. #3135', function()
|
||||||
|
local cmd = "msgpackparse(systemlist('"
|
||||||
|
..helpers.nvim_prog.." --api-info'))['_TYPE']['_VAL'][0][0]"
|
||||||
|
local api_info = eval(cmd)
|
||||||
|
api_info = eval(cmd) -- do it again (try to force segfault)
|
||||||
|
api_info = eval(cmd) -- do it again
|
||||||
|
eq('functions', api_info)
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user