commit 1b8ae4336db86ff95998223cc6bd8e07229d237d
parent 6dee1672ccc973f50e28e4adb7cbadd481db3f03
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 8 May 2025 07:51:23 +0800
test(swapfile): don't check for line with full file path (#33896)
Wrapping can happen anywhere where in the full file path, breaking the
matching. Match a line with the "Xswaptest" line instead.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua b/test/functional/ex_cmds/swapfile_preserve_recover_spec.lua
@@ -451,8 +451,8 @@ pcall(vim.cmd.edit, 'Xtest_swapredraw.lua')
screen:expect({
any = table.concat({
pesc('{2:E325: ATTENTION}'),
- 'file name: .*Xswaptest',
- 'process ID: %d* %(STILL RUNNING%)',
+ '\n process ID: %d* %(STILL RUNNING%)',
+ '\nWhile opening file "Xswaptest"',
pesc('{1:[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort: }^'),
}, '.*'),
})