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,9 +112,10 @@ endfunc
|
||||
|
||||
func Test_exit_error_reading_input()
|
||||
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')
|
||||
call assert_equal(['l = 1'], readfile('Xtestout'))
|
||||
|
||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4444,
|
||||
/**/
|
||||
4443,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user