forked from aniani/vim
patch 8.0.1058: terminal redirection test is flaky
Problem: Terminal redirection test is flaky. Solution: Wait for job to finish.
This commit is contained in:
@@ -614,6 +614,8 @@ func Test_terminal_redir_file()
|
|||||||
call term_wait(buf)
|
call term_wait(buf)
|
||||||
call WaitFor('term_getline(' . buf . ', 1) == "one line"')
|
call WaitFor('term_getline(' . buf . ', 1) == "one line"')
|
||||||
call assert_equal('one line', term_getline(buf, 1))
|
call assert_equal('one line', term_getline(buf, 1))
|
||||||
|
let g:job = term_getjob(buf)
|
||||||
|
call WaitFor('job_status(g:job) == "dead"')
|
||||||
bwipe
|
bwipe
|
||||||
call delete('Xfile')
|
call delete('Xfile')
|
||||||
endif
|
endif
|
||||||
|
@@ -769,6 +769,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 */
|
||||||
|
/**/
|
||||||
|
1058,
|
||||||
/**/
|
/**/
|
||||||
1057,
|
1057,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user