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_expr.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_expr.vim')
-rw-r--r-- | test/old/testdir/test_expr.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim index b8ef87d714..1a00a85b0f 100644 --- a/test/old/testdir/test_expr.vim +++ b/test/old/testdir/test_expr.vim @@ -25,6 +25,8 @@ func Test_equal() " Nvim doesn't have null functions " call assert_equal(0, test_null_function() == function('min')) " call assert_equal(1, test_null_function() == test_null_function()) + " Nvim doesn't have test_unknown() + " call assert_fails('eval 10 == test_unknown()', 'E685:') endfunc func Test_version() @@ -137,7 +139,7 @@ func Test_loop_over_null_list() endfor endfunc -func Test_set_reg_null_list() +func Test_setreg_null_list() call setreg('x', v:_null_list) endfunc |