summaryrefslogtreecommitdiff
path: root/src/testdir/test_partial.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-25 15:24:44 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-25 15:24:44 +0200
commit92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76 (patch)
tree92daff824edb3982d06e20aa33e3b2c8fe3331ed /src/testdir/test_partial.vim
parent9d8d0b5c644ea53364d04403740b3f23e57c1497 (diff)
downloadvim-git-92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76.tar.gz
patch 8.2.0634: crash with null partial and blobv8.2.0634
Problem: Crash with null partial and blob. Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan, closes #5984)
Diffstat (limited to 'src/testdir/test_partial.vim')
-rw-r--r--src/testdir/test_partial.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_partial.vim b/src/testdir/test_partial.vim
index 5b273db23..2fad7b289 100644
--- a/src/testdir/test_partial.vim
+++ b/src/testdir/test_partial.vim
@@ -194,6 +194,8 @@ func Test_partial_string()
call assert_equal("function('MyFunc', {'one': 1})", string(F))
let F = function('MyFunc', ['foo'], d)
call assert_equal("function('MyFunc', ['foo'], {'one': 1})", string(F))
+ call assert_equal("function('')", string(test_null_function()))
+ call assert_equal("function('')", string(test_null_partial()))
endfunc
func Test_func_unref()