diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-04 14:00:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-04 14:00:39 +0200 |
commit | cde0ff39da2459b16007fef701ebaa449fb6fe9d (patch) | |
tree | 9ba0f500505470043d6e78a30600419375d4c76f /src/testdir/test_viminfo.vim | |
parent | d77a8525d5438cae49f670eb473ef60d87ca5f54 (diff) | |
download | vim-git-cde0ff39da2459b16007fef701ebaa449fb6fe9d.tar.gz |
patch 8.2.0509: various code is not properly tested.v8.2.0509
Problem: various code is not properly tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5871)
Diffstat (limited to 'src/testdir/test_viminfo.vim')
-rw-r--r-- | src/testdir/test_viminfo.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_viminfo.vim b/src/testdir/test_viminfo.vim index 78e0f1a81..044da0a1b 100644 --- a/src/testdir/test_viminfo.vim +++ b/src/testdir/test_viminfo.vim @@ -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 |