comparison src/testdir/test_quickfix.vim @ 20158:94f05de75e9f v8.2.0634

patch 8.2.0634: crash with null partial and blob Commit: https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 25 15:24:44 2020 +0200 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 #5984)
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Apr 2020 15:30:04 +0200
parents d4baa35fea5d
children 2fb397573541
comparison
equal deleted inserted replaced
20157:ada5332a22b7 20158:94f05de75e9f
2156 let d = g:Xgetlist({'context':1}) 2156 let d = g:Xgetlist({'context':1})
2157 call assert_equal("Context info", d.context) 2157 call assert_equal("Context info", d.context)
2158 call g:Xsetlist([], 'a', {'context':246}) 2158 call g:Xsetlist([], 'a', {'context':246})
2159 let d = g:Xgetlist({'context':1}) 2159 let d = g:Xgetlist({'context':1})
2160 call assert_equal(246, d.context) 2160 call assert_equal(246, d.context)
2161 " set other Vim data types as context
2162 call g:Xsetlist([], 'a', {'context' : test_null_blob()})
2163 if has('channel')
2164 call g:Xsetlist([], 'a', {'context' : test_null_channel()})
2165 endif
2166 if has('job')
2167 call g:Xsetlist([], 'a', {'context' : test_null_job()})
2168 endif
2169 call g:Xsetlist([], 'a', {'context' : test_null_function()})
2170 call g:Xsetlist([], 'a', {'context' : test_null_partial()})
2171 call g:Xsetlist([], 'a', {'context' : ''})
2172 call test_garbagecollect_now()
2161 if a:cchar == 'l' 2173 if a:cchar == 'l'
2162 " Test for copying context across two different location lists 2174 " Test for copying context across two different location lists
2163 new | only 2175 new | only
2164 let w1_id = win_getid() 2176 let w1_id = win_getid()
2165 let l = [1] 2177 let l = [1]