commit 054839437e63a7cc985e266052a1539c560a0682
parent 28f54a78782318cb9c356a372b9e52a3a6b1f8dd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 17 Sep 2023 06:07:53 +0800
test(plugin/man_spec): use pesc() on actual_file in pattern (#25199)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua
@@ -9,6 +9,7 @@ local matches = helpers.matches
local write_file = helpers.write_file
local tmpname = helpers.tmpname
local eq = helpers.eq
+local pesc = helpers.pesc
local skip = helpers.skip
local is_ci = helpers.is_ci
@@ -189,7 +190,7 @@ describe(':Man', function()
write_file(actual_file, '')
local args = {nvim_prog, '--headless', '+:Man ' .. actual_file, '+q'}
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, {''}))
os.remove(actual_file)
end)