changeset 28105:7824e49e5f51 v8.2.4577

patch 8.2.4577: message test is flaky Commit: https://github.com/vim/vim/commit/9323ca51c2b1522f26907a7b8879067245ebd1be Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 16 11:14:57 2022 +0000 patch 8.2.4577: message test is flaky Problem: Message test is flaky. (Elimar Riesebieter) Solution: Trigger the autocommand event only after startup is finished.
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Mar 2022 12:30:03 +0100
parents 4ba45e56ac83
children 4c7aa481d798
files src/testdir/test_messages.vim src/version.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_messages.vim
+++ b/src/testdir/test_messages.vim
@@ -360,12 +360,13 @@ func Test_fileinfo_after_echo()
 
     hide buffer a.txt
 
-    set updatetime=1
-    autocmd CursorHold * b b.txt | w | echo "'b' written"
+    autocmd CursorHold * buf b.txt | w | echo "'b' written"
   END
 
   call writefile(content, 'Xtest_fileinfo_after_echo')
   let buf = RunVimInTerminal('-S Xtest_fileinfo_after_echo', #{rows: 6})
+  call term_sendkeys(buf, ":set updatetime=50\<CR>")
+  call term_sendkeys(buf, "0$")
   call VerifyScreenDump(buf, 'Test_fileinfo_after_echo', {})
 
   call term_sendkeys(buf, ":q\<CR>")
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4577,
+/**/
     4576,
 /**/
     4575,