changeset 13539:5f543bce50e8 v8.0.1643

patch 8.0.1643: terminal API tests fail commit https://github.com/vim/vim/commit/2de50f87622cd4e631fd17845e16a94ed5992b80 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 25 19:09:56 2018 +0200 patch 8.0.1643: terminal API tests fail Problem: Terminal API tests fail. Solution: Explicitly set 'title'.
author Christian Brabandt <cb@256bit.org>
date Sun, 25 Mar 2018 19:15:05 +0200
parents 2bc543b10a51
children 8615a18244bb
files src/testdir/test_terminal.vim src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -1029,6 +1029,7 @@ func Test_terminal_api_drop_newwin()
     return
   endif
   call assert_equal(1, winnr('$'))
+  set title
 
   " Use the title termcap entries to output the escape sequence.
   call writefile([
@@ -1045,6 +1046,7 @@ func Test_terminal_api_drop_newwin()
   call StopVimInTerminal(buf)
   call delete('Xscript')
   bwipe Xtextfile
+  set title&
 endfunc
 
 func Test_terminal_api_drop_oldwin()
@@ -1056,6 +1058,7 @@ func Test_terminal_api_drop_oldwin()
   let textfile_winid = win_getid()
   call assert_equal(2, winnr('$'))
   call win_gotoid(firstwinid)
+  set title
 
   " Use the title termcap entries to output the escape sequence.
   call writefile([
@@ -1071,6 +1074,7 @@ func Test_terminal_api_drop_oldwin()
   call StopVimInTerminal(buf)
   call delete('Xscript')
   bwipe Xtextfile
+  set title&
 endfunc
 
 func TryThis(bufnum, arg)
@@ -1082,6 +1086,8 @@ func Test_terminal_api_call()
   if !CanRunVimInTerminal()
     return
   endif
+  set title
+
   " Use the title termcap entries to output the escape sequence.
   call writefile([
 	\ 'exe "set t_ts=\<Esc>]51; t_fs=\x07"',
@@ -1098,4 +1104,5 @@ func Test_terminal_api_call()
   call delete('Xscript')
   unlet g:called_bufnum
   unlet g:called_arg
+  set title&
 endfunc
--- a/src/version.c
+++ b/src/version.c
@@ -767,6 +767,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1643,
+/**/
     1642,
 /**/
     1641,