aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
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'))