Skip to content

Commit

Permalink
patch 9.0.0559: timer test may get stuck at hit-enter prompt
Browse files Browse the repository at this point in the history
Problem:    Timer test may get stuck at hit-enter prompt.
Solution:   Feed some more characters.
  • Loading branch information
brammool committed Sep 23, 2022
1 parent 7f9a5a6 commit 4ecf16b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/testdir/test_timers.vim
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -699,6 +699,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
559,
/**/
558,
/**/
Expand Down

0 comments on commit 4ecf16b

Please sign in to comment.