Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_cscope.vim +++ b/src/testdir/test_cscope.vim @@ -244,10 +244,13 @@ func Test_cscopeWithCscopeConnections() call assert_equal('', a) " Test: 'csprg' option - call assert_equal('cscope', &csprg) - set csprg=doesnotexist - call assert_fails('cscope add Xcscope2.out', 'E262:') - set csprg=cscope + " Skip this with valgrind, it causes spurious leak reports + if !RunningWithValgrind() + call assert_equal('cscope', &csprg) + set csprg=doesnotexist + call assert_fails('cscope add Xcscope2.out', 'E262:') + set csprg=cscope + endif " Test: multiple cscope connections cscope add Xcscope.out