]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0937: test_undolist() is flaky v9.1.0937
authorChristian Brabandt <cb@256bit.org>
Mon, 16 Dec 2024 21:28:28 +0000 (22:28 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 16 Dec 2024 21:28:28 +0000 (22:28 +0100)
Problem:  test_undolist() is flaky
Solution: allow to match one additional optional whitespace char

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_undo.vim
src/version.c

index 75ee4a5db31801263772f01bee7dddbd32ac3950..844ba77ea5040fbd26fcc71261ee65d36958aadb 100644 (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
index eb37def7872ba8c74b00cd1ec7f120f00ed2f409..b52eaaedaffa1d4ccd095700a401e8c332ec61d7 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    937,
 /**/
     936,
 /**/