1
0
forked from aniani/vim

patch 8.2.0441: terminal noblock test is still failing on BSD

Problem:    Terminal noblock test is still failing on BSD.
Solution:   Reduce the amount of text.
This commit is contained in:
Bram Moolenaar
2020-03-24 12:12:30 +01:00
parent d06dbf3f42
commit f3710ee22d
2 changed files with 7 additions and 4 deletions

View File

@@ -662,22 +662,23 @@ endfunction
func Test_terminal_noblock() func Test_terminal_noblock()
let buf = term_start(&shell) let buf = term_start(&shell)
let wait_time = 5000
let letters = 'abcdefghijklmnopqrstuvwxyz'
if has('bsd') || has('mac') || has('sun') if has('bsd') || has('mac') || has('sun')
" The shell or something else has a problem dealing with more than 1000 " 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 len = 1000
let wait_time = 15000 let wait_time = 15000
let letters = 'abcdefghijklm'
" NPFS is used in Windows, nonblocking mode does not work properly. " NPFS is used in Windows, nonblocking mode does not work properly.
elseif has('win32') elseif has('win32')
let len = 1 let len = 1
let wait_time = 5000
else else
let len = 5000 let len = 5000
let wait_time = 5000
endif endif
" Send a lot of text lines, should be buffered properly. " 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>") call term_sendkeys(buf, 'echo ' . repeat(c, len) . "\<cr>")
endfor endfor
call term_sendkeys(buf, "echo done\<cr>") call term_sendkeys(buf, "echo done\<cr>")

View File

@@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
441,
/**/ /**/
440, 440,
/**/ /**/