]> granicus.if.org Git - vim/commitdiff
patch 8.1.0255: backup test fails when using shadow directory v8.1.0255
authorBram Moolenaar <Bram@vim.org>
Wed, 8 Aug 2018 09:02:32 +0000 (11:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 8 Aug 2018 09:02:32 +0000 (11:02 +0200)
Problem:    Backup test fails when using shadow directory.
Solution:   Remove check for "src".

src/testdir/test_backup.vim
src/version.c

index 3187b588781f52e28526dbd94b1d7aedd38cb4df..0981efdcee2f99301de20597d974c619b2d7c565 100644 (file)
@@ -29,7 +29,7 @@ func Test_backup2()
   sp *Xbackup.txt~
   call assert_equal(['line1', 'line2', 'line3'], getline(1,'$'))
   let f=expand('%')
-  call assert_match('src%testdir%Xbackup.txt\~', f)
+  call assert_match('%testdir%Xbackup.txt\~', f)
   bw!
   bw!
   call delete('Xbackup.txt')
@@ -49,7 +49,7 @@ func Test_backup2_backupcopy()
   sp *Xbackup.txt~
   call assert_equal(['line1', 'line2', 'line3'], getline(1,'$'))
   let f=expand('%')
-  call assert_match('src%testdir%Xbackup.txt\~', f)
+  call assert_match('%testdir%Xbackup.txt\~', f)
   bw!
   bw!
   call delete('Xbackup.txt')
index 099ea1fa281f974ba7bca67b1b80b916e0a12dbc..76d47dd63ee33ecb1357e1eef072d0ccb5051f51 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    255,
 /**/
     254,
 /**/