comparison src/testdir/test_cscope.vim @ 27104:92e0b1f2b72f v8.2.4081

patch 8.2.4081: CodeQL reports problem in if_cscope causing it to fail Commit: https://github.com/vim/vim/commit/4050305bfd24e7d0e241f617519bd0fa86263b9a Author: ichizok <gclient.gaap@gmail.com> Date: Thu Jan 13 18:09:11 2022 +0000 patch 8.2.4081: CodeQL reports problem in if_cscope causing it to fail Problem: CodeQL reports problem in if_cscope causing it to fail. Solution: Use execvp() instead of execl(). Merge the header file into the source file. (Ozaki Kiichi, closes #9519)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 19:15:03 +0100
parents 18545ce744c4
children 0b47ef4e19b8
comparison
equal deleted inserted replaced
27103:98aa9f353206 27104:92e0b1f2b72f
244 call assert_equal('', a) 244 call assert_equal('', a)
245 245
246 " Test: 'csprg' option 246 " Test: 'csprg' option
247 call assert_equal('cscope', &csprg) 247 call assert_equal('cscope', &csprg)
248 set csprg=doesnotexist 248 set csprg=doesnotexist
249 call assert_fails('cscope add Xcscope2.out', 'E609:') 249 call assert_fails('cscope add Xcscope2.out', 'E262:')
250 set csprg=cscope 250 set csprg=cscope
251 251
252 " Test: multiple cscope connections 252 " Test: multiple cscope connections
253 cscope add Xcscope.out 253 cscope add Xcscope.out
254 cscope add Xcscope2.out . -C 254 cscope add Xcscope2.out . -C