0
0
mirror of https://github.com/vim/vim.git synced 2025-08-24 19:45:50 -04:00

patch 8.2.2700: nested autocmd test fails sometimes

Problem:    Nested autocmd test fails sometimes.
Solution:   Wait for the job to finish.
This commit is contained in:
Bram Moolenaar 2021-04-03 17:22:29 +02:00
parent c48f2dc0be
commit 6437475ffb
2 changed files with 4 additions and 2 deletions

View File

@ -2021,8 +2021,8 @@ func Test_terminal_nested_autocmd()
let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})
call assert_equal(lastline, line('.'))
call TermWait(buf)
exe buf . 'bwipe'
let job = term_getjob(buf)
call WaitForAssert({-> assert_equal("dead", job_status(job))})
call delete('Xtext')
augroup TermTest
au!

View File

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