changeset 12339:040ec95b8647 v8.0.1049

patch 8.0.1049: shell on Mac can't handle long text commit https://github.com/vim/vim/commit/d8d85bfb7d650d2fb584ea48aaaebdbc8a2e3dce Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 3 18:08:00 2017 +0200 patch 8.0.1049: shell on Mac can't handle long text Problem: Shell on Mac can't handle long text, making terminal test fail. Solution: Only write 1000 characters instead of 5000.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Sep 2017 18:15:04 +0200
parents 210f6da3d249
children 6b40ac998f8b
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -458,14 +458,16 @@ endfunction
 
 func Test_terminal_noblock()
   let g:buf = term_start(&shell)
+  if has('mac')
+    " The shell or something else has a problem dealing with more than 1000
+    " characters at the same time.
+    let len = 1000
+  else
+    let len = 5000
+  endif
 
   for c in ['a','b','c','d','e','f','g','h','i','j','k']
-    call term_sendkeys(g:buf, 'echo ' . repeat(c, 5000) . "\<cr>")
-    if has('mac')
-      " TODO: this should not be needed, but without it sending keys blocks
-      " after 8000 chars or so.
-      sleep 100m
-    endif
+    call term_sendkeys(g:buf, 'echo ' . repeat(c, len) . "\<cr>")
   endfor
   call term_sendkeys(g:buf, "echo done\<cr>")
 
--- 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 */
 /**/
+    1049,
+/**/
     1048,
 /**/
     1047,