summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_expr.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_expr.vim
parent9d8d0b5c644ea53364d04403740b3f23e57c1497 (diff)
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_expr.vim')
-rw-r--r--src/testdir/test_expr.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim
index c8b5464f41..5fc502df81 100644
--- a/src/testdir/test_expr.vim
+++ b/src/testdir/test_expr.vim
@@ -24,6 +24,7 @@ func Test_equal()
call assert_fails('echo base.method > instance.method')
call assert_equal(0, test_null_function() == function('min'))
call assert_equal(1, test_null_function() == test_null_function())
+ call assert_fails('eval 10 == test_unknown()', 'E685:')
endfunc
func Test_version()
@@ -100,7 +101,7 @@ func Test_loop_over_null_list()
endfor
endfunc
-func Test_set_reg_null_list()
+func Test_setreg_null_list()
call setreg('x', test_null_list())
endfunc