diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-07 07:58:37 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-07 07:58:37 +0800 |
| commit | 9b9f84bc62a01ed76b9f53119781816bd3375267 (patch) | |
| tree | c1c6e5463d515ddc174ca71554d1203f29983c28 /src/nvim/testdir/test_startup.vim | |
| parent | 3b3611a3d0f1e13e277360d6bacf97a0fb7eb6de (diff) | |
| parent | 7e1d9c560b09cacb78b2fc8f9428a77d6fca66e1 (diff) | |
| download | rneovim-9b9f84bc62a01ed76b9f53119781816bd3375267.tar.gz rneovim-9b9f84bc62a01ed76b9f53119781816bd3375267.tar.bz2 rneovim-9b9f84bc62a01ed76b9f53119781816bd3375267.zip | |
Merge pull request #20982 from zeertzjq/vim-8.2.2849
vim-patch:8.2.{2849,2856,2873}: buffer writing tests
Diffstat (limited to 'src/nvim/testdir/test_startup.vim')
| -rw-r--r-- | src/nvim/testdir/test_startup.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_startup.vim b/src/nvim/testdir/test_startup.vim index 30bbd355df..f9f7c5b492 100644 --- a/src/nvim/testdir/test_startup.vim +++ b/src/nvim/testdir/test_startup.vim @@ -1279,4 +1279,19 @@ func Test_progname() call delete('Xprogname', 'd') endfunc +" Test for doing a write from .vimrc +func Test_write_in_vimrc() + call writefile(['silent! write'], 'Xvimrc') + let after =<< trim [CODE] + call assert_match('E32: ', v:errmsg) + call writefile(v:errors, 'Xtestout') + qall + [CODE] + if RunVim([], after, '-u Xvimrc') + call assert_equal([], readfile('Xtestout')) + call delete('Xtestout') + endif + call delete('Xvimrc') +endfunc + " vim: shiftwidth=2 sts=2 expandtab |