aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/shared.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 10:22:47 +0800
committerGitHub <noreply@github.com>2022-12-05 10:22:47 +0800
commit1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a (patch)
tree02fdc53f0d65f92775914890a55cf16c4bea4c01 /src/nvim/testdir/shared.vim
parentb098e7971fdf8ed3f7d0c52aff0ce126c34ff3c8 (diff)
parent9ae6b03e7aaf635da5d39c1bd7ff6829cc232acb (diff)
downloadrneovim-1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a.tar.gz
rneovim-1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a.tar.bz2
rneovim-1c6f7e5933fcc4b58e7cb3a945d7654b6e591e4a.zip
Merge pull request #21292 from zeertzjq/vim-8.2.1195
vim-patch:8.2.{1195,1197,2240,3108,3109,3495,3499,3526,5145}
Diffstat (limited to 'src/nvim/testdir/shared.vim')
-rw-r--r--src/nvim/testdir/shared.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/shared.vim b/src/nvim/testdir/shared.vim
index ef7cc4ac5f..953118f650 100644
--- a/src/nvim/testdir/shared.vim
+++ b/src/nvim/testdir/shared.vim
@@ -285,6 +285,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()