mirror of
https://github.com/neovim/neovim.git
synced 2026-04-22 23:35:32 +00:00
oldtests: win: keep set dir=/
Any user can create a directory on root. Creating a directory on root allows any user to write files within that directory. Test_recover_root_dir() passes when run locally as a regular user (not admin).
This commit is contained in:
@@ -6,11 +6,6 @@ func Test_recover_root_dir()
|
||||
set dir=/
|
||||
call assert_fails('recover', 'E305:')
|
||||
close!
|
||||
|
||||
if has('win32') || filewritable('/') == 2
|
||||
" can write in / directory on MS-Windows
|
||||
set dir=/notexist/
|
||||
endif
|
||||
call assert_fails('split Xtest', 'E303:')
|
||||
set dir&
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user