commit 237827a0da9ee8afaf1065f4bf6de45030d6d6c3
parent d72c805e87c8878cff333a97a85da59642a101ce
Author: Justin M. Keyes <justinkz@gmail.com>
Date: Wed, 1 Oct 2025 22:08:10 -0400
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: ...
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/test/busted/outputHandlers/nvim.lua b/test/busted/outputHandlers/nvim.lua
@@ -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