]> granicus.if.org Git - vim/commitdiff
patch 8.2.0441: terminal noblock test is still failing on BSD v8.2.0441
authorBram Moolenaar <Bram@vim.org>
Tue, 24 Mar 2020 11:12:30 +0000 (12:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 24 Mar 2020 11:12:30 +0000 (12:12 +0100)
Problem:    Terminal noblock test is still failing on BSD.
Solution:   Reduce the amount of text.

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

index cfbf67a412bf7a82989eab5f725a1078398ab932..f56c7facfced4c739a557c2f0798515b48fd84a5 100644 (file)
@@ -662,22 +662,23 @@ endfunction
 
 func Test_terminal_noblock()
   let buf = term_start(&shell)
+  let wait_time = 5000
+  let letters = 'abcdefghijklmnopqrstuvwxyz'
   if has('bsd') || has('mac') || has('sun')
     " The shell or something else has a problem dealing with more than 1000
-    " characters at the same time.
+    " characters at the same time.  It's very slow too.
     let len = 1000
     let wait_time = 15000
+    let letters = 'abcdefghijklm'
   " NPFS is used in Windows, nonblocking mode does not work properly.
   elseif has('win32')
     let len = 1
-    let wait_time = 5000
   else
     let len = 5000
-    let wait_time = 5000
   endif
 
   " Send a lot of text lines, should be buffered properly.
-  for c in split('abcdefghijklmnopqrstuvwxyz', '\zs')
+  for c in split(letters, '\zs')
     call term_sendkeys(buf, 'echo ' . repeat(c, len) . "\<cr>")
   endfor
   call term_sendkeys(buf, "echo done\<cr>")
index 7e9c68cb43953b778e2c1c37152e2dd8b408c76b..0cf6011632fbf9afd3a0a81c77e05057fa6d4cab 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    441,
 /**/
     440,
 /**/