0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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:
Bram Moolenaar 2017-09-05 20:29:25 +02:00
parent 1bfdc07a49
commit 8b53b79ea5
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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,
/**/ /**/