0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00

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)
This commit is contained in:
Bram Moolenaar 2017-05-18 16:23:43 +02:00
parent 79a213d6a4
commit 2a0b06def4
2 changed files with 3 additions and 1 deletions

View 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

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
600,
/**/
599,
/**/