aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-17 06:07:53 +0800
committerGitHub <noreply@github.com>2023-09-17 06:07:53 +0800
commit054839437e63a7cc985e266052a1539c560a0682 (patch)
tree7aacb4b43b4f8ee2f6d35313d3ebde65ed571e4f
parent28f54a78782318cb9c356a372b9e52a3a6b1f8dd (diff)
downloadrneovim-054839437e63a7cc985e266052a1539c560a0682.tar.gz
rneovim-054839437e63a7cc985e266052a1539c560a0682.tar.bz2
rneovim-054839437e63a7cc985e266052a1539c560a0682.zip
test(plugin/man_spec): use pesc() on actual_file in pattern (#25199)
-rw-r--r--test/functional/plugin/man_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/plugin/man_spec.lua b/test/functional/plugin/man_spec.lua
index d5c1a78fc8..815ddbc523 100644
--- 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)