Mercurial > vim
comparison src/testdir/test_cscope.vim @ 29249:0b47ef4e19b8 v8.2.5143
patch 8.2.5143: some tests fail when using valgrind
Commit: https://github.com/vim/vim/commit/37bb3b111d08ce420e3cfd6ea3da3ed7428fbed1
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 21 17:40:47 2022 +0100
patch 8.2.5143: some tests fail when using valgrind
Problem: Some tests fail when using valgrind. Spurious leak reports.
Solution: Use WaitForAssert(). Avoid failing fork/exec. Skip tests where a
job is killed when running valgrind.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jun 2022 18:45:08 +0200 |
parents | 92e0b1f2b72f |
children | f7a2de8a4ddc |
comparison
equal
deleted
inserted
replaced
29248:6a718a4e17ce | 29249:0b47ef4e19b8 |
---|---|
242 call assert_match('cscope connection .*Xcscope.out closed', a) | 242 call assert_match('cscope connection .*Xcscope.out closed', a) |
243 let a = execute('cscope kill -1') | 243 let a = execute('cscope kill -1') |
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 " Skip this with valgrind, it causes spurious leak reports |
248 set csprg=doesnotexist | 248 if !RunningWithValgrind() |
249 call assert_fails('cscope add Xcscope2.out', 'E262:') | 249 call assert_equal('cscope', &csprg) |
250 set csprg=cscope | 250 set csprg=doesnotexist |
251 call assert_fails('cscope add Xcscope2.out', 'E262:') | |
252 set csprg=cscope | |
253 endif | |
251 | 254 |
252 " Test: multiple cscope connections | 255 " Test: multiple cscope connections |
253 cscope add Xcscope.out | 256 cscope add Xcscope.out |
254 cscope add Xcscope2.out . -C | 257 cscope add Xcscope2.out . -C |
255 let a = execute('cscope show') | 258 let a = execute('cscope show') |