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:
@@ -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')
|
||||||
|
|||||||
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user