]> granicus.if.org Git - vim/commitdiff
patch 8.2.4444: beep caused by test v8.2.4444
authorBram Moolenaar <Bram@vim.org>
Tue, 22 Feb 2022 17:42:48 +0000 (17:42 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 22 Feb 2022 17:42:48 +0000 (17:42 +0000)
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.

src/testdir/test_exit.vim
src/version.c

index 68659fb1f4d60cb00f4b4f986a5e1b4c2181ff51..a5cabf8131d8f992d0425b2083cc3ef01af077b2 100644 (file)
@@ -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')
index 05e52291800a298a2b3984e6fb3b75722ca32075..646f1edaaa16ddf4bebcf6bcc40123901941b92f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4444,
 /**/
     4443,
 /**/