# HG changeset patch # User Bram Moolenaar # Date 1645551903 -3600 # Node ID 264cb6d2d0e921891aa789d8339827abc1cf4ac8 # Parent d596189e6020d342e39147e2812212cc5092fd0d patch 8.2.4444: beep caused by test Commit: https://github.com/vim/vim/commit/68eab67119734ea1efc7cef1287276d969f2713a Author: Bram Moolenaar Date: Tue Feb 22 17:42:48 2022 +0000 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 --- 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([], [], '