mirror of
https://github.com/vim/vim.git
synced 2025-08-24 19:45:50 -04:00
patch 8.0.0963: terminal test fails on MacOS
Problem: Terminal test fails on MacOS. (chdiza) Solution: Wait for the shell to echo the characters. (closes #1991)
This commit is contained in:
parent
9aa1569128
commit
d21f8b54b2
@ -452,14 +452,21 @@ func Test_terminal_list_args()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
func Test_terminal_noblock()
|
func Test_terminal_noblock()
|
||||||
let buf = term_start(&shell)
|
let g:buf = term_start(&shell)
|
||||||
|
|
||||||
for c in ['a','b','c','d','e','f','g','h','i','j','k']
|
for c in ['a','b','c','d','e','f','g','h','i','j','k']
|
||||||
call term_sendkeys(buf, 'echo ' . repeat(c, 5000) . "\<cr>")
|
call term_sendkeys(g:buf, 'echo ' . repeat(c, 5000) . "\<cr>")
|
||||||
endfor
|
endfor
|
||||||
|
call term_sendkeys(g:buf, "echo done\<cr>")
|
||||||
|
let g:lnum = term_getsize(g:buf)[0] - 1
|
||||||
|
call WaitFor('term_getline(g:buf, g:lnum) =~ "done"', 3000)
|
||||||
|
call assert_match('done', term_getline(g:buf, g:lnum))
|
||||||
|
|
||||||
let g:job = term_getjob(buf)
|
let g:job = term_getjob(g:buf)
|
||||||
call Stop_shell_in_terminal(buf)
|
call Stop_shell_in_terminal(g:buf)
|
||||||
call term_wait(buf)
|
call term_wait(g:buf)
|
||||||
|
unlet g:buf
|
||||||
|
unlet g:job
|
||||||
|
unlet g:lnum
|
||||||
bwipe
|
bwipe
|
||||||
endfunc
|
endfunc
|
||||||
|
@ -769,6 +769,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 */
|
||||||
|
/**/
|
||||||
|
963,
|
||||||
/**/
|
/**/
|
||||||
962,
|
962,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user