aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/check.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-12-05 09:53:31 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-12-05 09:55:18 +0800
commit9ae6b03e7aaf635da5d39c1bd7ff6829cc232acb (patch)
tree02fdc53f0d65f92775914890a55cf16c4bea4c01 /src/nvim/testdir/check.vim
parentba9fcc22ef02c70ffea367bc9fbf22c0dca7c103 (diff)
downloadrneovim-9ae6b03e7aaf635da5d39c1bd7ff6829cc232acb.tar.gz
rneovim-9ae6b03e7aaf635da5d39c1bd7ff6829cc232acb.tar.bz2
rneovim-9ae6b03e7aaf635da5d39c1bd7ff6829cc232acb.zip
vim-patch:8.2.5145: exit test causes spurious valgrind reports
Problem: Exit test causes spurious valgrind reports. Solution: Skip test. Add CheckNotValgrind. https://github.com/vim/vim/commit/cf801d4b95180ddaee1bf633ef482232625dd80b Cherry-pick RunningWithValgrind() from patch 8.2.5136. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir/check.vim')
-rw-r--r--src/nvim/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
index d200633115..a188f7afa1 100644
--- a/src/nvim/testdir/check.vim
+++ b/src/nvim/testdir/check.vim
@@ -171,6 +171,14 @@ func CheckNotAsan()
endif
endfunc
+" Command to check for not running under valgrind
+command CheckNotValgrind call CheckNotValgrind()
+func CheckNotValgrind()
+ if RunningWithValgrind()
+ throw 'Skipped: does not work well with valgrind'
+ endif
+endfunc
+
" Command to check for X11 based GUI
command CheckX11BasedGui call CheckX11BasedGui()
func CheckX11BasedGui()