mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
test(plugin/man_spec): use pesc() on actual_file in pattern
(cherry picked from commit 8f1e344339
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
cdb8c46253
commit
aa04090e92
@@ -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