]> granicus.if.org Git - vim/commitdiff
patch 8.0.0600: test_recover fails on some systems v8.0.0600
authorBram Moolenaar <Bram@vim.org>
Thu, 18 May 2017 14:23:43 +0000 (16:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 18 May 2017 14:23:43 +0000 (16:23 +0200)
Problem:    test_recover fails on some systems.
Solution:   Explicitly check if "/" is writable. (Ken Takata)

src/testdir/test_recover.vim
src/version.c

index 33cd54bc5cf6b199f2c72fdec2dcaacd426c0986..2e34985fedcdf4f771383d52fed1a3f816bce2ea 100644 (file)
@@ -7,7 +7,7 @@ func Test_recover_root_dir()
   call assert_fails('recover', 'E305:')
   close!
 
-  if has('win32')
+  if has('win32') || filewritable('/') == 2
     " can write in / directory on MS-Windows
     set dir=/notexist/
   endif
index a572ae30bbf624109a923e2d97904600e0774bf2..7262a3d415eecb3d2fe0f1c84045ad91fef00323 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    600,
 /**/
     599,
 /**/