0
0
mirror of https://github.com/vim/vim.git synced 2025-08-22 19:27:53 -04:00

patch 8.2.5145: exit test causes spurious valgrind reports

Problem:    Exit test causes spurious valgrind reports.
Solution:   Skip test.  Add CheckNotValgrind.
This commit is contained in:
Bram Moolenaar 2022-06-21 18:34:42 +01:00
parent c856ceb300
commit cf801d4b95
4 changed files with 12 additions and 3 deletions

View File

@ -217,6 +217,14 @@ func CheckNotAsan()
endif endif
endfunc 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 to check for X11 based GUI
command CheckX11BasedGui call CheckX11BasedGui() command CheckX11BasedGui call CheckX11BasedGui()
func CheckX11BasedGui() func CheckX11BasedGui()

View File

@ -1793,9 +1793,7 @@ endfunc
func Test_job_stop_immediately() func Test_job_stop_immediately()
" With valgrind this causes spurious leak reports " With valgrind this causes spurious leak reports
if RunningWithValgrind() CheckNotValgrind
return
endif
let g:job = job_start([s:python, '-c', 'import time;time.sleep(10)']) let g:job = job_start([s:python, '-c', 'import time;time.sleep(10)'])
try try

View File

@ -115,6 +115,7 @@ func Test_exit_error_reading_input()
CheckNotMSWindows CheckNotMSWindows
" The early exit causes memory not to be freed somehow " The early exit causes memory not to be freed somehow
CheckNotAsan CheckNotAsan
CheckNotValgrind
call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b') call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b')

View File

@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
5145,
/**/ /**/
5144, 5144,
/**/ /**/