mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.2016: terminal altscreen test now fails on MS-Windows
Problem: Terminal altscreen test now fails on MS-Windows. Solution: Skip the test on MS-Windows
This commit is contained in:
@@ -321,10 +321,8 @@ func Test_terminal_scrollback()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_postponed_scrollback()
|
func Test_terminal_postponed_scrollback()
|
||||||
if !has('unix')
|
" tail -f only works on Unix
|
||||||
" tail -f only works on Unix
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
|
|
||||||
call writefile(range(50), 'Xtext')
|
call writefile(range(50), 'Xtext')
|
||||||
call writefile([
|
call writefile([
|
||||||
@@ -740,9 +738,8 @@ endfunc
|
|||||||
|
|
||||||
func Test_terminal_special_chars()
|
func Test_terminal_special_chars()
|
||||||
" this file name only works on Unix
|
" this file name only works on Unix
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
call mkdir('Xdir with spaces')
|
call mkdir('Xdir with spaces')
|
||||||
call writefile(['x'], 'Xdir with spaces/quoted"file')
|
call writefile(['x'], 'Xdir with spaces/quoted"file')
|
||||||
term ls Xdir\ with\ spaces/quoted\"file
|
term ls Xdir\ with\ spaces/quoted\"file
|
||||||
@@ -953,9 +950,7 @@ func Test_terminal_term_start_empty_command()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_response_to_control_sequence()
|
func Test_terminal_response_to_control_sequence()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
|
|
||||||
let buf = Run_shell_in_terminal({})
|
let buf = Run_shell_in_terminal({})
|
||||||
call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
|
call WaitForAssert({-> assert_notequal('', term_getline(buf, 1))})
|
||||||
@@ -1720,9 +1715,8 @@ func Test_terminal_termwinkey()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_out_err()
|
func Test_terminal_out_err()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
call writefile([
|
call writefile([
|
||||||
\ '#!/bin/sh',
|
\ '#!/bin/sh',
|
||||||
\ 'echo "this is standard error" >&2',
|
\ 'echo "this is standard error" >&2',
|
||||||
@@ -1744,9 +1738,7 @@ func Test_terminal_out_err()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminwinscroll()
|
func Test_terminwinscroll()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Let the terminal output more than 'termwinscroll' lines, some at the start
|
" Let the terminal output more than 'termwinscroll' lines, some at the start
|
||||||
" will be dropped.
|
" will be dropped.
|
||||||
@@ -1848,9 +1840,8 @@ func Test_zz2_terminal_guioptions_bang()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_hidden()
|
func Test_terminal_hidden()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
term ++hidden cat
|
term ++hidden cat
|
||||||
let bnr = bufnr('$')
|
let bnr = bufnr('$')
|
||||||
call assert_equal('terminal', getbufvar(bnr, '&buftype'))
|
call assert_equal('terminal', getbufvar(bnr, '&buftype'))
|
||||||
@@ -1887,9 +1878,8 @@ func Test_terminal_switch_mode()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_hidden_and_close()
|
func Test_terminal_hidden_and_close()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
call assert_equal(1, winnr('$'))
|
call assert_equal(1, winnr('$'))
|
||||||
term ++hidden ++close ls
|
term ++hidden ++close ls
|
||||||
let bnr = bufnr('$')
|
let bnr = bufnr('$')
|
||||||
@@ -1933,9 +1923,8 @@ func Test_terminal_no_job()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_term_getcursor()
|
func Test_term_getcursor()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
let buf = Run_shell_in_terminal({})
|
let buf = Run_shell_in_terminal({})
|
||||||
|
|
||||||
" Wait for the shell to display a prompt.
|
" Wait for the shell to display a prompt.
|
||||||
@@ -2024,9 +2013,8 @@ endfunc
|
|||||||
" 4. 0.5 sec later: redraw, including statusline (used to trigger bug)
|
" 4. 0.5 sec later: redraw, including statusline (used to trigger bug)
|
||||||
" 4. 0.5 sec later: should be done, clean up
|
" 4. 0.5 sec later: should be done, clean up
|
||||||
func Test_terminal_statusline()
|
func Test_terminal_statusline()
|
||||||
if !has('unix')
|
CheckUnix
|
||||||
return
|
|
||||||
endif
|
|
||||||
set statusline=x
|
set statusline=x
|
||||||
terminal
|
terminal
|
||||||
let tbuf = bufnr('')
|
let tbuf = bufnr('')
|
||||||
@@ -2088,11 +2076,9 @@ func Test_terminal_getwinpos()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_terminal_altscreen()
|
func Test_terminal_altscreen()
|
||||||
if has('win32')
|
" somehow doesn't work on MS-Windows
|
||||||
let cmd = "type Xtext\<CR>"
|
CheckUnix
|
||||||
else
|
let cmd = "cat Xtext\<CR>"
|
||||||
let cmd = "cat Xtext\<CR>"
|
|
||||||
endif
|
|
||||||
|
|
||||||
let buf = term_start(&shell, {})
|
let buf = term_start(&shell, {})
|
||||||
call writefile(["\<Esc>[?1047h"], 'Xtext')
|
call writefile(["\<Esc>[?1047h"], 'Xtext')
|
||||||
|
@@ -757,6 +757,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 */
|
||||||
|
/**/
|
||||||
|
2016,
|
||||||
/**/
|
/**/
|
||||||
2015,
|
2015,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user