0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

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.
This commit is contained in:
Bram Moolenaar
2022-09-23 18:22:21 +01:00
parent 7f9a5a68fe
commit 4ecf16bbf9
2 changed files with 6 additions and 2 deletions

View File

@@ -379,11 +379,13 @@ func Test_nocatch_timer_garbage_collect()
let a = {'foo', 'bar'} let a = {'foo', 'bar'}
endfunc endfunc
func FeedChar(id) func FeedChar(id)
call feedkeys('x', 't') call feedkeys(":\<CR>", 't')
endfunc endfunc
call timer_start(300, 'FeedChar') call timer_start(300, 'FeedChar')
call timer_start(100, 'CauseAnError') 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& set ut&
call test_override('no_wait_return', 1) call test_override('no_wait_return', 1)

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
559,
/**/ /**/
558, 558,
/**/ /**/