]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0216: undo earlier test sometimes fails on MS-Windows v9.0.0216
authorBram Moolenaar <Bram@vim.org>
Mon, 15 Aug 2022 16:28:27 +0000 (17:28 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 15 Aug 2022 16:28:27 +0000 (17:28 +0100)
Problem:    Undo earlier test sometimes fails on MS-Windows.
Solution:   Use another file name.

src/testdir/test_undo.vim
src/version.c

index 596944cdf3a6b3a92a49c8c81b3b6237c7f4db56..a2f3c01daf50d2e4efb5c001e2887f7753461658 100644 (file)
@@ -339,7 +339,7 @@ func Test_undofile_earlier()
   " create undofile with timestamps older than Vim startup time.
   let t0 = localtime() - 43200
   call test_settime(t0)
-  new Xfile
+  new XfileEarlier
   call feedkeys("ione\<Esc>", 'xt')
   set ul=100
   call test_settime(t0 + 1)
@@ -353,12 +353,12 @@ func Test_undofile_earlier()
   bwipe!
   " restore normal timestamps.
   call test_settime(0)
-  new Xfile
+  new XfileEarlier
   rundo Xundofile
   earlier 1d
   call assert_equal('', getline(1))
   bwipe!
-  call delete('Xfile')
+  call delete('XfileEarlier')
   call delete('Xundofile')
 endfunc
 
index f08f6173afd157ce3f56ea1f9884d951b9de4a88..a48533068bdb5f574835a8f895c60242e0ad1935 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    216,
 /**/
     215,
 /**/