changeset 30447:db70368fd2b9 v9.0.0559

patch 9.0.0559: timer test may get stuck at hit-enter prompt Commit: https://github.com/vim/vim/commit/4ecf16bbf951f10fd32c918c9d8bc004b7f8f7c9 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 23 18:22:21 2022 +0100 patch 9.0.0559: timer test may get stuck at hit-enter prompt Problem: Timer test may get stuck at hit-enter prompt. Solution: Feed some more characters.
author Bram Moolenaar <Bram@vim.org>
date Fri, 23 Sep 2022 19:30:05 +0200
parents 58da8a140312
children 48f3922a1dac
files src/testdir/test_timers.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_timers.vim
+++ b/src/testdir/test_timers.vim
@@ -379,11 +379,13 @@ func Test_nocatch_timer_garbage_collect(
     let a = {'foo', 'bar'}
   endfunc
   func FeedChar(id)
-    call feedkeys('x', 't')
+    call feedkeys(":\<CR>", 't')
   endfunc
   call timer_start(300, 'FeedChar')
   call timer_start(100, 'CauseAnError')
-  let x = getchar()
+  let x = getchar()   " wait for error in timer
+  let x = getchar(0)  " read any remaining chars
+  let x = getchar(0)
 
   set ut&
   call test_override('no_wait_return', 1)
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    559,
+/**/
     558,
 /**/
     557,