mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
4c83567da3
commit
c9aafda6ac
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user