diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 13:31:30 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 13:48:30 +0800 |
commit | 85741677c86f7686e3597a310f8059608e7816fb (patch) | |
tree | 2d203ebcd6609c1db6c61cde4d43fccb7424f341 /test/old/testdir/test_eval_stuff.vim | |
parent | 4b49f312a05214d5d1974f7ac2702ffb407fc558 (diff) | |
download | rneovim-85741677c86f7686e3597a310f8059608e7816fb.tar.gz rneovim-85741677c86f7686e3597a310f8059608e7816fb.tar.bz2 rneovim-85741677c86f7686e3597a310f8059608e7816fb.zip |
vim-patch:8.2.0634: crash with null partial and blob
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes vim/vim#5984)
https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_eval_stuff.vim')
-rw-r--r-- | test/old/testdir/test_eval_stuff.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/old/testdir/test_eval_stuff.vim b/test/old/testdir/test_eval_stuff.vim index 6a7fb223e0..90e3942c4d 100644 --- a/test/old/testdir/test_eval_stuff.vim +++ b/test/old/testdir/test_eval_stuff.vim @@ -39,6 +39,9 @@ func Test_mkdir_p() call assert_fails('call mkdir("Xfile", "p")', 'E739') call delete('Xfile') call delete('Xmkdir', 'rf') + call assert_equal(0, mkdir(v:_null_string)) + call assert_fails('call mkdir([])', 'E730') + call assert_fails('call mkdir("abc", [], [])', 'E745') endfunc func Test_line_continuation() @@ -212,6 +215,8 @@ func Test_execute_cmd_with_null() execute v:_null_string " Nvim doesn't have null partials " call assert_fails('execute test_null_partial()', 'E729:') + " Nvim doesn't have test_unknown() + " call assert_fails('execute test_unknown()', 'E908:') if has('job') call assert_fails('execute test_null_job()', 'E908:') call assert_fails('execute test_null_channel()', 'E908:') |