From: Bram Moolenaar Date: Tue, 22 Feb 2022 17:42:48 +0000 (+0000) Subject: patch 8.2.4444: beep caused by test X-Git-Tag: v8.2.4444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68eab67119734ea1efc7cef1287276d969f2713a;p=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. --- diff --git a/src/testdir/test_exit.vim b/src/testdir/test_exit.vim index 68659fb1f..a5cabf813 100644 --- a/src/testdir/test_exit.vim +++ b/src/testdir/test_exit.vim @@ -112,11 +112,12 @@ 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\q:"], 'Xscript') + call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b') - if RunVim([], [], '< Xscript') + if RunVim([], [], '