]> granicus.if.org Git - vim/commitdiff
patch 8.0.1058: terminal redirection test is flaky v8.0.1058
authorBram Moolenaar <Bram@vim.org>
Tue, 5 Sep 2017 18:29:25 +0000 (20:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 5 Sep 2017 18:29:25 +0000 (20:29 +0200)
Problem:    Terminal redirection test is flaky.
Solution:   Wait for job to finish.

src/testdir/test_terminal.vim
src/version.c

index 2ee25bf7c7cb70514f0c94784512a5d286c97c31..800567920d2b3e702bfd8bb8c62114a2669efa91 100644 (file)
@@ -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
index 8fa740d7849c46bb9b3cce0382cfe76178ae9e45..79ce0e04267bb6706d3e139dceb059b2b05dedb5 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1058,
 /**/
     1057,
 /**/