mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.1118: sporadic test failures when using a terminal window
Problem: Sporadic test failures when using a terminal window. Solution: Adjust waiting times. (James McCoy, closes #11763)
This commit is contained in:
parent
7b8db111e8
commit
dbe6ef1036
@ -141,6 +141,9 @@ func StopVimInTerminal(buf, kill = 1)
|
||||
|
||||
call assert_equal("running", term_getstatus(a:buf))
|
||||
|
||||
" Wait for all the pending updates to terminal to complete
|
||||
call TermWait(a:buf)
|
||||
|
||||
" CTRL-O : works both in Normal mode and Insert mode to start a command line.
|
||||
" In Command-line it's inserted, the CTRL-U removes it again.
|
||||
call term_sendkeys(a:buf, "\<C-O>:\<C-U>qa!\<cr>")
|
||||
|
@ -2393,7 +2393,6 @@ func Test_autocmd_user_clear_group()
|
||||
call term_sendkeys(buf, ":autocmd User\<CR>")
|
||||
call TermWait(buf, 50)
|
||||
call term_sendkeys(buf, "G")
|
||||
call TermWait(buf, 50)
|
||||
|
||||
call StopVimInTerminal(buf)
|
||||
endfunc
|
||||
|
@ -375,7 +375,7 @@ func Test_searchpair_timeout_with_skip()
|
||||
else
|
||||
let ms = 1
|
||||
let min_time = 0.001
|
||||
let max_time = min_time * 10.0
|
||||
let max_time = min_time * 15.0
|
||||
if RunningWithValgrind()
|
||||
let max_time += 0.04 " this can be slow with valgrind
|
||||
endif
|
||||
|
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1118,
|
||||
/**/
|
||||
1117,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user