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.
diff --git a/src/testdir/shared.vim b/src/testdir/shared.vim
index 60636fd..bb42678 100644
--- a/src/testdir/shared.vim
+++ b/src/testdir/shared.vim
@@ -288,6 +288,12 @@
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()