aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/make_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-06-22 05:51:52 -0700
committerJustin M. Keyes <justinkz@gmail.com>2022-06-25 08:27:17 -0700
commitf977f9445f7689fc32a136108ff92b3c2137968c (patch)
tree34c4abe44693550d88221cbd140828d2657dcd7a /test/functional/ex_cmds/make_spec.lua
parent0b9664f5240be4d9e9d6882fcd398970fd3a9532 (diff)
downloadrneovim-f977f9445f7689fc32a136108ff92b3c2137968c.tar.gz
rneovim-f977f9445f7689fc32a136108ff92b3c2137968c.tar.bz2
rneovim-f977f9445f7689fc32a136108ff92b3c2137968c.zip
refactor(tests): introduce testprg()
Also: - Add a describe('shell :!') section to system_spec. - Make the test for #16271 work on systems without powershell.
Diffstat (limited to 'test/functional/ex_cmds/make_spec.lua')
-rw-r--r--test/functional/ex_cmds/make_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ex_cmds/make_spec.lua b/test/functional/ex_cmds/make_spec.lua
index 3b4d22ab38..bf585ee44c 100644
--- a/test/functional/ex_cmds/make_spec.lua
+++ b/test/functional/ex_cmds/make_spec.lua
@@ -4,7 +4,7 @@ local eval = helpers.eval
local has_powershell = helpers.has_powershell
local matches = helpers.matches
local nvim = helpers.nvim
-local nvim_dir = helpers.nvim_dir
+local testprg = helpers.testprg
describe(':make', function()
clear()
@@ -22,7 +22,7 @@ describe(':make', function()
end)
it('captures stderr & non zero exit code #14349', function ()
- nvim('set_option', 'makeprg', nvim_dir..'/shell-test foo')
+ nvim('set_option', 'makeprg', testprg('shell-test')..' foo')
local out = eval('execute("make")')
-- Make program exit code correctly captured
matches('\nshell returned 3', out)
@@ -31,7 +31,7 @@ describe(':make', function()
end)
it('captures stderr & zero exit code #14349', function ()
- nvim('set_option', 'makeprg', nvim_dir..'/shell-test')
+ nvim('set_option', '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)