aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorglacambre <code@lacamb.re>2019-08-12 16:44:53 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-09-13 15:15:59 -0700
commit77594d55f7092cf4f2baacc067eb41ad96e65398 (patch)
treef32bd8907c21d771f296eeec27b4d7de3d5fd1a9 /test/functional/core/startup_spec.lua
parent3afb397407af3c94fc82d694186e8d451e625237 (diff)
downloadrneovim-77594d55f7092cf4f2baacc067eb41ad96e65398.tar.gz
rneovim-77594d55f7092cf4f2baacc067eb41ad96e65398.tar.bz2
rneovim-77594d55f7092cf4f2baacc067eb41ad96e65398.zip
startup: fail if --embed with -es/-Es #10753
Closes https://github.com/neovim/neovim/issues/10031
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 2d6eb4dd45..5098d764ff 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -217,6 +217,13 @@ describe('startup', function()
end
end)
+ it('fails on --embed with -es/-Es', function()
+ eq('nvim: --embed conflicts with -es/-Es\nMore info with "nvim -h"\n',
+ funcs.system({nvim_prog, '--embed', '-es' }))
+ eq('nvim: --embed conflicts with -es/-Es\nMore info with "nvim -h"\n',
+ funcs.system({nvim_prog, '--embed', '-Es' }))
+ end)
+
it('does not crash if --embed is given twice', function()
clear{args={'--embed'}}
eq(2, eval('1+1'))