mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
Merge pull request #25200 from neovim/backport-25199-to-release-0.9
[Backport release-0.9] test(plugin/man_spec): use pesc() on actual_file in pattern
This commit is contained in:
@@ -9,6 +9,7 @@ local matches = helpers.matches
|
|||||||
local write_file = helpers.write_file
|
local write_file = helpers.write_file
|
||||||
local tmpname = helpers.tmpname
|
local tmpname = helpers.tmpname
|
||||||
local eq = helpers.eq
|
local eq = helpers.eq
|
||||||
|
local pesc = helpers.pesc
|
||||||
local skip = helpers.skip
|
local skip = helpers.skip
|
||||||
local is_ci = helpers.is_ci
|
local is_ci = helpers.is_ci
|
||||||
|
|
||||||
@@ -189,7 +190,7 @@ describe(':Man', function()
|
|||||||
write_file(actual_file, '')
|
write_file(actual_file, '')
|
||||||
local args = {nvim_prog, '--headless', '+:Man ' .. actual_file, '+q'}
|
local args = {nvim_prog, '--headless', '+:Man ' .. actual_file, '+q'}
|
||||||
matches(('Error detected while processing command line:\r\n' ..
|
matches(('Error detected while processing command line:\r\n' ..
|
||||||
'man.lua: "no manual entry for %s"'):format(actual_file),
|
'man.lua: "no manual entry for %s"'):format(pesc(actual_file)),
|
||||||
funcs.system(args, {''}))
|
funcs.system(args, {''}))
|
||||||
os.remove(actual_file)
|
os.remove(actual_file)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user