summaryrefslogtreecommitdiffstats
path: root/src/testdir/shared.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-19 20:13:56 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-19 20:13:56 +0100
commite366ed4f2c6fa8cb663f1b9599b39d57ddbd8a2a (patch)
treee79d26066d2e9011af77ad5376908f45d6214b04 /src/testdir/shared.vim
parent0f0d3a7fb6473760b6f6679e3c8a81376220c869 (diff)
patch 8.2.5136: debugger test fails when run with valgrindv8.2.5136
Problem: Debugger test fails when run with valgrind. Solution: Wait longer when using valgrind.
Diffstat (limited to 'src/testdir/shared.vim')
-rw-r--r--src/testdir/shared.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index 60636fd314..bb42678acc 100644
--- a/src/testdir/shared.vim
+++ b/src/testdir/shared.vim
@@ -288,6 +288,12 @@ func GetVimCommand(...)
return cmd
endfunc
+" Return one when it looks like the tests are run with valgrind, which means
+" that everything is much slower.
+func RunningWithValgrind()
+ return GetVimCommand() =~ '\<valgrind\>'
+endfunc
+
" Get the command to run Vim, with --clean instead of "-u NONE".
func GetVimCommandClean()
let cmd = GetVimCommand()