forked from aniani/vim
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:
@@ -2021,8 +2021,8 @@ func Test_terminal_nested_autocmd()
|
|||||||
let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})
|
let buf = term_start(cmd, #{term_finish: 'close', hidden: 1})
|
||||||
call assert_equal(lastline, line('.'))
|
call assert_equal(lastline, line('.'))
|
||||||
|
|
||||||
call TermWait(buf)
|
let job = term_getjob(buf)
|
||||||
exe buf . 'bwipe'
|
call WaitForAssert({-> assert_equal("dead", job_status(job))})
|
||||||
call delete('Xtext')
|
call delete('Xtext')
|
||||||
augroup TermTest
|
augroup TermTest
|
||||||
au!
|
au!
|
||||||
|
@@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
2700,
|
||||||
/**/
|
/**/
|
||||||
2699,
|
2699,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user