diff src/testdir/test_channel.vim @ 9266:78fc4c84476e v7.4.1916

commit https://github.com/vim/vim/commit/b8aefa46adf5e825118716e142fab7ef32076475 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 10 23:02:56 2016 +0200 patch 7.4.1916 Problem: No proper test for what 7.4.1906 fixes. Solution: Add a test for reading many lines.
author Christian Brabandt <cb@256bit.org>
date Fri, 10 Jun 2016 23:15:05 +0200
parents 7d13d180a6ae
children 2465b6cda394
line wrap: on
line diff
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -1335,6 +1335,20 @@ func Test_using_freed_memory()
   call test_garbagecollect_now()
 endfunc
 
+func Test_collapse_buffers()
+  if !executable('cat')
+    return
+  endif
+  sp test_channel.vim
+  let g:linecount = line('$')
+  close
+  split testout
+  1,$delete
+  call job_start('cat test_channel.vim', {'out_io': 'buffer', 'out_name': 'testout'})
+  call s:waitFor('line("$") > g:linecount')
+  call assert_true(line('$') > g:linecount)
+  bwipe!
+endfunc
 
 
 " Uncomment this to see what happens, output is in src/testdir/channellog.