test: normalize test filepath #35983

Problem:
Inconsistet slashes in Windows CI:

    ERROR test/functional\ex_cmds\mksession_spec.lua @ 36: ...

Solution:
Normalize the slashes.

    ERROR test/functional/ex_cmds/mksession_spec.lua @ 36: ...
This commit is contained in:
Justin M. Keyes authored and GitHub committed 2025-10-01 19:08:10 -07:00
1 parent d72c805e87
commit 237827a0da
1 file changed
+2 -4
+2 -4
View File
@@ -140,10 +140,8 @@ return function(options)
local getFileLine = function(element)
local fileline = ''
if element.trace or element.trace.short_src then
fileline = colors.cyan(element.trace.short_src)
.. ' @ '
.. colors.cyan(element.trace.currentline)
.. ': '
local fname = vim.fs.normalize(element.trace.short_src)
fileline = colors.cyan(fname) .. ' @ ' .. colors.cyan(element.trace.currentline) .. ': '
end
return fileline
end