Commit: patch 9.1.0937: test_undolist() is flaky

3 views
Skip to first unread message

Christian Brabandt

unread,
Dec 16, 2024, 4:45:11 PM12/16/24
to vim...@googlegroups.com
patch 9.1.0937: test_undolist() is flaky

Commit: https://github.com/vim/vim/commit/381ff7726efee9a0a7c2f79e01340fa972cafdfd
Author: Christian Brabandt <c...@256bit.org>
Date: Mon Dec 16 22:28:28 2024 +0100

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 <c...@256bit.org>

diff --git a/src/testdir/test_undo.vim b/src/testdir/test_undo.vim
index 75ee4a5db..844ba77ea 100644
--- a/src/testdir/test_undo.vim
+++ b/src/testdir/test_undo.vim
@@ -282,7 +282,8 @@ func Test_undolist()
w Xundolist.txt
defer delete('Xundolist.txt')
let lastline = execute('undolist')->split("
")[-1]
- call assert_match("ago 1", lastline)
+ call assert_match('seconds\? ago \?1', lastline)
+
endif
bw!
endfunc
diff --git a/src/version.c b/src/version.c
index eb37def78..b52eaaeda 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 937,
/**/
936,
/**/
Reply all
Reply to author
Forward
0 new messages