Mercurial > vim
changeset 27837:264cb6d2d0e9 v8.2.4444
patch 8.2.4444: beep caused by test
Commit: https://github.com/vim/vim/commit/68eab67119734ea1efc7cef1287276d969f2713a
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Feb 2022 18:45:03 +0100 |
parents | d596189e6020 |
children | a4c131183f4c |
files | src/testdir/test_exit.vim src/version.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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\<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')) endif call delete('Xscript')