From aa04090e9214b19a89db3258c939d85e0fd19f36 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 17 Sep 2023 05:47:36 +0800 Subject: [PATCH] test(plugin/man_spec): use pesc() on actual_file in pattern (cherry picked from commit 8f1e344339fe65fb06f0145cee6efda5f5c0f3f2) --- test/functional/plugin/man_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)