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 68659fb..a5cabf8 100644
--- a/src/testdir/test_exit.vim
+++ b/src/testdir/test_exit.vim
@@ -112,11 +112,12 @@
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')