]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.1436: writefile test fails when run under /tmp v8.1.1436
authorBram Moolenaar <Bram@vim.org>
Fri, 31 May 2019 18:42:09 +0000 (20:42 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 31 May 2019 18:42:09 +0000 (20:42 +0200)
Problem:    Writefile test fails when run under /tmp.
Solution:   Adjust 'backupskip. (Kenta Sato, closes #4462)

src/testdir/test_writefile.vim
src/version.c

index a06333d806dbc3bed8d3e3edc47b4b88aeb988ef..4b0a6d6c738f748e4d8c0fe77cf14833fcfbb34c 100644 (file)
@@ -38,7 +38,7 @@ func Test_writefile_fails_conversion()
   endif
   " Without a backup file the write won't happen if there is a conversion
   " error.
-  set nobackup nowritebackup
+  set nobackup nowritebackup backupdir=. backupskip=
   new
   let contents = ["line one", "line two"]
   call writefile(contents, 'Xfile')
@@ -49,7 +49,7 @@ func Test_writefile_fails_conversion()
 
   call delete('Xfile')
   bwipe!
-  set backup& writebackup&
+  set backup& writebackup& backupdir&vim backupskip&vim
 endfunc
 
 func Test_writefile_fails_conversion2()
@@ -58,7 +58,7 @@ func Test_writefile_fails_conversion2()
   endif
   " With a backup file the write happens even if there is a conversion error,
   " but then the backup file must remain
-  set nobackup writebackup
+  set nobackup writebackup backupdir=. backupskip=
   let contents = ["line one", "line two"]
   call writefile(contents, 'Xfile_conversion_err')
   edit Xfile_conversion_err
@@ -71,6 +71,7 @@ func Test_writefile_fails_conversion2()
   call delete('Xfile_conversion_err')
   call delete('Xfile_conversion_err~')
   bwipe!
+  set backup& writebackup& backupdir&vim backupskip&vim
 endfunc
 
 func SetFlag(timer)
index fdb0844ddda6786f230f65d907771beea78e77b0..352969fd889807045776e1bcc57d6bdeaab80e27 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1436,
 /**/
     1435,
 /**/