]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 7.4.1879 v7.4.1879
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Jun 2016 18:07:09 +0000 (20:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Jun 2016 18:07:09 +0000 (20:07 +0200)
Problem:    Channel test is flaky.
Solution:   Wait for close_cb to be invoked.

src/testdir/test_channel.vim
src/version.c

index b4e9d7f9b09562e4f124e417fd7f259db5ad9c55..a60147bd444de0940aa02668ed0bc49a0a17326a 100644 (file)
@@ -708,7 +708,7 @@ func Run_test_pipe_to_buffer(use_name, nomod)
     call ch_sendraw(handle, "double this\n")
     call ch_sendraw(handle, "quit\n")
     sp pipe-output
-    call s:waitFor('line("$") >= 6')
+    call s:waitFor('line("$") >= 6 && s:bufClosed == "yes"')
     call assert_equal([firstline, 'line one', 'line two', 'this', 'AND this', 'Goodbye!'], getline(1, '$'))
     if a:nomod
       call assert_equal(0, &modifiable)
index f450ba8bbb0fdf6aab6cab56125450cf668e344c..7373e70ddc67275f8a51dd606e64b13c71ed682e 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1879,
 /**/
     1878,
 /**/