0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0937: test_undolist() is flaky

Problem:  test_undolist() is flaky
Solution: allow to match one additional optional whitespace char

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2024-12-16 22:28:28 +01:00
parent 6a38aff218
commit 381ff7726e
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 4 additions and 1 deletions

View File

@ -282,7 +282,8 @@ func Test_undolist()
w Xundolist.txt
defer delete('Xundolist.txt')
let lastline = execute('undolist')->split("\n")[-1]
call assert_match("ago 1", lastline)
call assert_match('seconds\? ago \?1', lastline)
endif
bw!
endfunc

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
937,
/**/
936,
/**/