Skip to content

Commit 8b53b79

Browse files
committed
patch 8.0.1058: terminal redirection test is flaky
Problem: Terminal redirection test is flaky. Solution: Wait for job to finish.
1 parent 1bfdc07 commit 8b53b79

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/test_terminal.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ func Test_terminal_redir_file()
614614
call term_wait(buf)
615615
call WaitFor('term_getline(' . buf . ', 1) == "one line"')
616616
call assert_equal('one line', term_getline(buf, 1))
617+
let g:job = term_getjob(buf)
618+
call WaitFor('job_status(g:job) == "dead"')
617619
bwipe
618620
call delete('Xfile')
619621
endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1058,
772774
/**/
773775
1057,
774776
/**/

0 commit comments

Comments
 (0)