aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-10-01 22:58:47 -0400
committerJames McCoy <jamessan@jamessan.com>2018-10-03 07:29:08 -0400
commiteb7b2c791296b26099395dbe2a5ec2b13f4fbdc5 (patch)
treee8e40e8ea897f201242a6deeef3a4ffb9932398c /test
parent65206714bc0990a469da5efd2edbe52e81903014 (diff)
downloadrneovim-eb7b2c791296b26099395dbe2a5ec2b13f4fbdc5.tar.gz
rneovim-eb7b2c791296b26099395dbe2a5ec2b13f4fbdc5.tar.bz2
rneovim-eb7b2c791296b26099395dbe2a5ec2b13f4fbdc5.zip
Fix crash if --embed is used more than once
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/startup_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 2a67453bce..15121261c7 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -4,6 +4,7 @@ local Screen = require('test.functional.ui.screen')
local clear = helpers.clear
local command = helpers.command
local eq = helpers.eq
+local eval = helpers.eval
local feed = helpers.feed
local funcs = helpers.funcs
local nvim_prog = helpers.nvim_prog
@@ -196,5 +197,10 @@ describe('startup', function()
funcs.system({nvim_prog, '-n', '-es' },
{ 'set encoding', '' }))
end)
+
+ it('does not crash if --embed is given twice', function()
+ clear{args={'--embed'}}
+ eq(2, eval('1+1'))
+ end)
end)