Skip to content

Commit 2a0b06d

Browse files
committed
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)
1 parent 79a213d commit 2a0b06d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/testdir/test_recover.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ func Test_recover_root_dir()
77
call assert_fails('recover', 'E305:')
88
close!
99

10-
if has('win32')
10+
if has('win32') || filewritable('/') == 2
1111
" can write in / directory on MS-Windows
1212
set dir=/notexist/
1313
endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
600,
767769
/**/
768770
599,
769771
/**/

0 commit comments

Comments
 (0)