mirror of
https://github.com/vim/vim.git
synced 2025-11-10 10:47:23 -05:00
patch 8.0.0979: terminal noblock test fails on MS-Windows
Problem: Terminal noblock test fails on MS-Windows. (Christian Brabandt) Solution: Ignore empty line below "done".
This commit is contained in:
@@ -458,9 +458,16 @@ func Test_terminal_noblock()
|
|||||||
call term_sendkeys(g: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>")
|
call term_sendkeys(g:buf, "echo done\<cr>")
|
||||||
|
|
||||||
|
" On MS-Windows there is an extra empty line below "done". Find "done" in
|
||||||
|
" the last-but-one or the last-but-two line.
|
||||||
let g:lnum = term_getsize(g:buf)[0] - 1
|
let g:lnum = term_getsize(g:buf)[0] - 1
|
||||||
call WaitFor('term_getline(g:buf, g:lnum) =~ "done"', 3000)
|
call WaitFor('term_getline(g:buf, g:lnum) =~ "done" || term_getline(g:buf, g:lnum - 1) =~ "done"', 3000)
|
||||||
call assert_match('done', term_getline(g:buf, g:lnum))
|
let line = term_getline(g:buf, g:lnum)
|
||||||
|
if line !~ 'done'
|
||||||
|
let line = term_getline(g:buf, g:lnum - 1)
|
||||||
|
endif
|
||||||
|
call assert_match('done', line)
|
||||||
|
|
||||||
let g:job = term_getjob(g:buf)
|
let g:job = term_getjob(g:buf)
|
||||||
call Stop_shell_in_terminal(g:buf)
|
call Stop_shell_in_terminal(g:buf)
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
/**/
|
||||||
|
979,
|
||||||
/**/
|
/**/
|
||||||
978,
|
978,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user