]> granicus.if.org Git - vim/commitdiff
patch 8.0.1823: test for terminal stdout redirection is flaky v8.0.1823
authorBram Moolenaar <Bram@vim.org>
Sat, 12 May 2018 19:12:12 +0000 (21:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 May 2018 19:12:12 +0000 (21:12 +0200)
Problem:    Test for terminal stdout redirection is flaky.
Solution:   Wait for the job to finish.

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

index 14466900a1c3c9a4e7da2f0f18feae52c185fc81..e9b69533d66bb14cdb1be5021ee42c234a0c52a4 100644 (file)
@@ -1502,6 +1502,7 @@ func Test_terminal_out_err()
   call assert_equal("this is standard out", readfile(outfile)[0])
   call assert_equal('this is standard error', term_getline(buf, 1))
 
+  call WaitForAssert({-> assert_equal('dead', job_status(term_getjob(buf)))})
   exe buf . 'bwipe'
   call delete('Xechoerrout.sh')
   call delete(outfile)
index 981d65033e611007699589fe7043b7d54f2f43b4..8af1a9590857b87fa24a2ae8c7c579d2b376d40d 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1823,
 /**/
     1822,
 /**/