1
0
forked from aniani/vim

patch 8.2.0509: various code is not properly tested.

Problem:    various code is not properly tested.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #5871)
This commit is contained in:
Bram Moolenaar
2020-04-04 14:00:39 +02:00
parent d77a8525d5
commit cde0ff39da
14 changed files with 452 additions and 15 deletions

View File

@@ -760,6 +760,11 @@ func Test_viminfo_perm()
call setfperm('Xviminfo', '--x------')
call assert_fails('rviminfo Xviminfo', 'E195:')
call delete('Xviminfo')
" Try to write the viminfo to a directory
call mkdir('Xdir')
call assert_fails('wviminfo Xdir', 'E886:')
call delete('Xdir', 'rf')
endfunc
" Test for writing to an existing viminfo file merges the file marks