]> granicus.if.org Git - vim/commitdiff
patch 8.0.1643: terminal API tests fail v8.0.1643
authorBram Moolenaar <Bram@vim.org>
Sun, 25 Mar 2018 17:09:56 +0000 (19:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 25 Mar 2018 17:09:56 +0000 (19:09 +0200)
Problem:    Terminal API tests fail.
Solution:   Explicitly set 'title'.

src/testdir/test_terminal.vim
src/version.c

index 6f655185f3b6297025d6a97939e2fd8413ba6add..2589b26cc864e46f95f694aa16f847485ac3c9bc 100644 (file)
@@ -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
index c648d52c3f7735d25b04edf155d29268e9aa0211..acca91ad847356313ceb747367a22b4cfb26bd15 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1643,
 /**/
     1642,
 /**/