summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-21 18:34:42 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-21 18:34:42 +0100
commitcf801d4b95180ddaee1bf633ef482232625dd80b (patch)
tree42076022555a8572e42dfef38d50d927cff18846 /src
parentc856ceb300ff8871ed546e36638f1a28531c379c (diff)
patch 8.2.5145: exit test causes spurious valgrind reportsv8.2.5145
Problem: Exit test causes spurious valgrind reports. Solution: Skip test. Add CheckNotValgrind.
Diffstat (limited to 'src')
-rw-r--r--src/testdir/check.vim8
-rw-r--r--src/testdir/test_channel.vim4
-rw-r--r--src/testdir/test_exit.vim1
-rw-r--r--src/version.c2
4 files changed, 12 insertions, 3 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index aff0918454..d64e8457b1 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -217,6 +217,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()
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index a7a609bd0e..d299ee3e62 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1793,9 +1793,7 @@ endfunc
func Test_job_stop_immediately()
" With valgrind this causes spurious leak reports
- if RunningWithValgrind()
- return
- endif
+ CheckNotValgrind
let g:job = job_start([s:python, '-c', 'import time;time.sleep(10)'])
try
diff --git a/src/testdir/test_exit.vim b/src/testdir/test_exit.vim
index c05374cb86..a7596e1019 100644
--- a/src/testdir/test_exit.vim
+++ b/src/testdir/test_exit.vim
@@ -115,6 +115,7 @@ func Test_exit_error_reading_input()
CheckNotMSWindows
" The early exit causes memory not to be freed somehow
CheckNotAsan
+ CheckNotValgrind
call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b')
diff --git a/src/version.c b/src/version.c
index 9b2fd4e7a3..0353e90cff 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 5145,
+/**/
5144,
/**/
5143,