From 77594d55f7092cf4f2baacc067eb41ad96e65398 Mon Sep 17 00:00:00 2001 From: glacambre Date: Mon, 12 Aug 2019 16:44:53 +0200 Subject: startup: fail if --embed with -es/-Es #10753 Closes https://github.com/neovim/neovim/issues/10031 --- test/functional/core/startup_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/functional/core/startup_spec.lua') 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')) -- cgit