1
0
forked from aniani/vim

patch 8.2.4444: beep caused by test

Problem:    Beep caused by test.  ASAN reports leaks.
Solution:   Do not put a NL at the end of the script.  Make the text work on
            MS-Windows.  Do not run the test with ASAN.
This commit is contained in:
Bram Moolenaar
2022-02-22 17:42:48 +00:00
parent 2457b2bbc2
commit 68eab67119
2 changed files with 6 additions and 3 deletions

View File

@@ -112,11 +112,12 @@ endfunc
func Test_exit_error_reading_input() func Test_exit_error_reading_input()
CheckNotGui CheckNotGui
CheckNotMSWindows " The early exit causes memory not to be freed somehow
CheckNotAsan
call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew\<CR>q:"], 'Xscript') call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b')
if RunVim([], [], '< Xscript') if RunVim([], [], '<Xscript')
call assert_equal(['l = 1'], readfile('Xtestout')) call assert_equal(['l = 1'], readfile('Xtestout'))
endif endif
call delete('Xscript') call delete('Xscript')

View File

@@ -750,6 +750,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 */
/**/
4444,
/**/ /**/
4443, 4443,
/**/ /**/