]> granicus.if.org Git - vim/commitdiff
patch 8.0.0995: terminal tests fail on Mac v8.0.0995
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Aug 2017 21:22:05 +0000 (23:22 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Aug 2017 21:22:05 +0000 (23:22 +0200)
Problem:    Terminal tests fail on Mac.
Solution:   Add workaround: sleep a moment in between sending keys.

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

index bdc5655d543d6cf8bd010193471b04fcd68aa36a..2356f2c538055207ec8adf483cd9ddab31dc8242 100644 (file)
@@ -456,6 +456,11 @@ func Test_terminal_noblock()
 
   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
   endfor
   call term_sendkeys(g:buf, "echo done\<cr>")
 
index 318053950e9becd942c46b63ba99bd13bcd312bd..9ce38f03acf16cfc7635877052f23f0740f64c90 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    995,
 /**/
     994,
 /**/