changeset 11432:0cafb01af1b6 v8.0.0600

patch 8.0.0600: test_recover fails on some systems commit https://github.com/vim/vim/commit/2a0b06def49198aef45ef173f524a638a700f9c9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 18 16:23:43 2017 +0200 patch 8.0.0600: test_recover fails on some systems Problem: test_recover fails on some systems. Solution: Explicitly check if "/" is writable. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Thu, 18 May 2017 16:30:03 +0200
parents 1597b1207296
children defbf8bfc6f6
files src/testdir/test_recover.vim src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_recover.vim
+++ b/src/testdir/test_recover.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    600,
+/**/
     599,
 /**/
     598,