mirror of
https://github.com/vim/vim.git
synced 2025-08-25 19:53:53 -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:
parent
c48f2dc0be
commit
6437475ffb
@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user