changeset 12357:9a7fb1d01137 v8.0.1058

patch 8.0.1058: terminal redirection test is flaky commit https://github.com/vim/vim/commit/8b53b79ea5304c7714cbb873210c82aa3fc8772f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 5 20:29:25 2017 +0200 patch 8.0.1058: terminal redirection test is flaky Problem: Terminal redirection test is flaky. Solution: Wait for job to finish.
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2017 20:30:05 +0200
parents bdbca05f588e
children 529cb40c9c0a
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -614,6 +614,8 @@ func Test_terminal_redir_file()
     call term_wait(buf)
     call WaitFor('term_getline(' . buf . ', 1) == "one line"')
     call assert_equal('one line', term_getline(buf, 1))
+    let g:job = term_getjob(buf)
+    call WaitFor('job_status(g:job) == "dead"')
     bwipe
     call delete('Xfile')
   endif
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1058,
+/**/
     1057,
 /**/
     1056,