test: fix failure on Windows (allow ".exe")

ref 77594d55f7
This commit is contained in:
Justin M. Keyes 2019-09-13 16:29:59 -07:00
parent 4b7d8e6b87
commit 5a3c86205f

View File

@ -4,6 +4,7 @@ local Screen = require('test.functional.ui.screen')
local clear = helpers.clear local clear = helpers.clear
local command = helpers.command local command = helpers.command
local eq = helpers.eq local eq = helpers.eq
local matches = helpers.matches
local eval = helpers.eval local eval = helpers.eval
local feed = helpers.feed local feed = helpers.feed
local funcs = helpers.funcs local funcs = helpers.funcs
@ -218,9 +219,9 @@ describe('startup', function()
end) end)
it('fails on --embed with -es/-Es', function() it('fails on --embed with -es/-Es', function()
eq('nvim: --embed conflicts with -es/-Es\nMore info with "nvim -h"\n', matches('nvim[.exe]*: %-%-embed conflicts with %-es/%-Es',
funcs.system({nvim_prog, '--embed', '-es' })) funcs.system({nvim_prog, '--embed', '-es' }))
eq('nvim: --embed conflicts with -es/-Es\nMore info with "nvim -h"\n', matches('nvim[.exe]*: %-%-embed conflicts with %-es/%-Es',
funcs.system({nvim_prog, '--embed', '-Es' })) funcs.system({nvim_prog, '--embed', '-Es' }))
end) end)