0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.1643: terminal API tests fail

Problem:    Terminal API tests fail.
Solution:   Explicitly set 'title'.
This commit is contained in:
Bram Moolenaar 2018-03-25 19:09:56 +02:00
parent 15a1c3fdc1
commit 2de50f8762
2 changed files with 9 additions and 0 deletions

View File

@ -1029,6 +1029,7 @@ func Test_terminal_api_drop_newwin()
return return
endif endif
call assert_equal(1, winnr('$')) call assert_equal(1, winnr('$'))
set title
" Use the title termcap entries to output the escape sequence. " Use the title termcap entries to output the escape sequence.
call writefile([ call writefile([
@ -1045,6 +1046,7 @@ func Test_terminal_api_drop_newwin()
call StopVimInTerminal(buf) call StopVimInTerminal(buf)
call delete('Xscript') call delete('Xscript')
bwipe Xtextfile bwipe Xtextfile
set title&
endfunc endfunc
func Test_terminal_api_drop_oldwin() func Test_terminal_api_drop_oldwin()
@ -1056,6 +1058,7 @@ func Test_terminal_api_drop_oldwin()
let textfile_winid = win_getid() let textfile_winid = win_getid()
call assert_equal(2, winnr('$')) call assert_equal(2, winnr('$'))
call win_gotoid(firstwinid) call win_gotoid(firstwinid)
set title
" Use the title termcap entries to output the escape sequence. " Use the title termcap entries to output the escape sequence.
call writefile([ call writefile([
@ -1071,6 +1074,7 @@ func Test_terminal_api_drop_oldwin()
call StopVimInTerminal(buf) call StopVimInTerminal(buf)
call delete('Xscript') call delete('Xscript')
bwipe Xtextfile bwipe Xtextfile
set title&
endfunc endfunc
func TryThis(bufnum, arg) func TryThis(bufnum, arg)
@ -1082,6 +1086,8 @@ func Test_terminal_api_call()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return return
endif endif
set title
" Use the title termcap entries to output the escape sequence. " Use the title termcap entries to output the escape sequence.
call writefile([ call writefile([
\ 'exe "set t_ts=\<Esc>]51; t_fs=\x07"', \ 'exe "set t_ts=\<Esc>]51; t_fs=\x07"',
@ -1098,4 +1104,5 @@ func Test_terminal_api_call()
call delete('Xscript') call delete('Xscript')
unlet g:called_bufnum unlet g:called_bufnum
unlet g:called_arg unlet g:called_arg
set title&
endfunc endfunc

View File

@ -766,6 +766,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 */
/**/
1643,
/**/ /**/
1642, 1642,
/**/ /**/