To: vim_dev@googlegroups.com Subject: Patch 8.2.4444 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4444 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. Files: src/testdir/test_exit.vim *** ../vim-8.2.4443/src/testdir/test_exit.vim 2022-02-22 15:24:47.894090799 +0000 --- src/testdir/test_exit.vim 2022-02-22 17:41:25.438257559 +0000 *************** *** 112,122 **** func Test_exit_error_reading_input() CheckNotGui ! CheckNotMSWindows ! call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew\q:"], 'Xscript') ! if RunVim([], [], '< Xscript') call assert_equal(['l = 1'], readfile('Xtestout')) endif call delete('Xscript') --- 112,123 ---- func Test_exit_error_reading_input() CheckNotGui ! " The early exit causes memory not to be freed somehow ! CheckNotAsan ! call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b') ! if RunVim([], [], '