Mercurial > vim
comparison src/testdir/shared.vim @ 29234:96ff6c230a66 v8.2.5136
patch 8.2.5136: debugger test fails when run with valgrind
Commit: https://github.com/vim/vim/commit/e366ed4f2c6fa8cb663f1b9599b39d57ddbd8a2a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 19 20:13:56 2022 +0100
patch 8.2.5136: debugger test fails when run with valgrind
Problem: Debugger test fails when run with valgrind.
Solution: Wait longer when using valgrind.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Jun 2022 21:15:03 +0200 |
parents | d8a962d7b008 |
children | 17c46a3d0ef5 |
comparison
equal
deleted
inserted
replaced
29233:3f3fbde94888 | 29234:96ff6c230a66 |
---|---|
286 endif | 286 endif |
287 | 287 |
288 return cmd | 288 return cmd |
289 endfunc | 289 endfunc |
290 | 290 |
291 " Return one when it looks like the tests are run with valgrind, which means | |
292 " that everything is much slower. | |
293 func RunningWithValgrind() | |
294 return GetVimCommand() =~ '\<valgrind\>' | |
295 endfunc | |
296 | |
291 " Get the command to run Vim, with --clean instead of "-u NONE". | 297 " Get the command to run Vim, with --clean instead of "-u NONE". |
292 func GetVimCommandClean() | 298 func GetVimCommandClean() |
293 let cmd = GetVimCommand() | 299 let cmd = GetVimCommand() |
294 let cmd = substitute(cmd, '-u NONE', '--clean', '') | 300 let cmd = substitute(cmd, '-u NONE', '--clean', '') |
295 let cmd = substitute(cmd, '--not-a-term', '', '') | 301 let cmd = substitute(cmd, '--not-a-term', '', '') |