startup: fail if --embed with -es/-Es #10753

Closes https://github.com/neovim/neovim/issues/10031
This commit is contained in:
glacambre
2019-08-12 16:44:53 +02:00
committed by Justin M. Keyes
parent 3afb397407
commit 77594d55f7
3 changed files with 14 additions and 0 deletions

View File

@@ -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'))