vim-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)

2a0b06def4
This commit is contained in:
Justin M. Keyes 2018-02-02 01:41:37 +01:00
parent 4c83567da3
commit c9aafda6ac

View File

@ -7,7 +7,7 @@ func Test_recover_root_dir()
call assert_fails('recover', 'E305:') call assert_fails('recover', 'E305:')
close! close!
if has('win32') if has('win32') || filewritable('/') == 2
" can write in / directory on MS-Windows " can write in / directory on MS-Windows
set dir=/notexist/ set dir=/notexist/
endif endif