comparison src/testdir/test_exit.vim @ 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 32366687a0dc
children cd4187269bdf
comparison
equal deleted inserted replaced
27836:d596189e6020 27837:264cb6d2d0e9
110 call delete('Xtestout') 110 call delete('Xtestout')
111 endfunc 111 endfunc
112 112
113 func Test_exit_error_reading_input() 113 func Test_exit_error_reading_input()
114 CheckNotGui 114 CheckNotGui
115 CheckNotMSWindows 115 " The early exit causes memory not to be freed somehow
116 CheckNotAsan
116 117
117 call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew\<CR>q:"], 'Xscript') 118 call writefile([":au VimLeave * call writefile(['l = ' .. v:exiting], 'Xtestout')", ":tabnew", "q:"], 'Xscript', 'b')
118 119
119 if RunVim([], [], '< Xscript') 120 if RunVim([], [], '<Xscript')
120 call assert_equal(['l = 1'], readfile('Xtestout')) 121 call assert_equal(['l = 1'], readfile('Xtestout'))
121 endif 122 endif
122 call delete('Xscript') 123 call delete('Xscript')
123 call delete('Xtestout') 124 call delete('Xtestout')
124 endfun 125 endfun