mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 21:15:09 +00:00
test: normalise nvim bridge functions
- remove helpers.cur*meths - remove helpers.nvim
This commit is contained in:
@@ -3,7 +3,7 @@ local clear = helpers.clear
|
||||
local eval = helpers.eval
|
||||
local has_powershell = helpers.has_powershell
|
||||
local matches = helpers.matches
|
||||
local nvim = helpers.nvim
|
||||
local meths = helpers.meths
|
||||
local testprg = helpers.testprg
|
||||
|
||||
describe(':make', function()
|
||||
@@ -22,7 +22,7 @@ describe(':make', function()
|
||||
end)
|
||||
|
||||
it('captures stderr & non zero exit code #14349', function()
|
||||
nvim('set_option_value', 'makeprg', testprg('shell-test') .. ' foo', {})
|
||||
meths.nvim_set_option_value('makeprg', testprg('shell-test') .. ' foo', {})
|
||||
local out = eval('execute("make")')
|
||||
-- Error message is captured in the file and printed in the footer
|
||||
matches(
|
||||
@@ -32,7 +32,7 @@ describe(':make', function()
|
||||
end)
|
||||
|
||||
it('captures stderr & zero exit code #14349', function()
|
||||
nvim('set_option_value', 'makeprg', testprg('shell-test'), {})
|
||||
meths.nvim_set_option_value('makeprg', testprg('shell-test'), {})
|
||||
local out = eval('execute("make")')
|
||||
-- Ensure there are no "shell returned X" messages between
|
||||
-- command and last line (indicating zero exit)
|
||||
|
||||
Reference in New Issue
Block a user