vim-patch:8.1.1483: skipped tests are not properly listed

Problem:    Skipped tests are not properly listed.
Solution:   Throw a "Skipped" exception instead of using ":finish" or ":return".
5d30ff1964

Skips quite some (N/A) tests.

vim-patch:8.1.0503: missing change to diff test (included in cf1ffa916)
This commit is contained in:
Daniel Hahler
2019-08-20 03:07:42 +02:00
parent 77729b0800
commit 9e24bbb52f
10 changed files with 14 additions and 14 deletions

View File

@@ -5,7 +5,7 @@
" It helps to change the tabstop setting and force a redraw (e.g. see " It helps to change the tabstop setting and force a redraw (e.g. see
" Test_breakindent08()) " Test_breakindent08())
if !exists('+breakindent') if !exists('+breakindent')
finish throw 'Skipped: breakindent option not supported'
endif endif
source view_util.vim source view_util.vim

View File

@@ -1,7 +1,7 @@
" Tests for the +clientserver feature. " Tests for the +clientserver feature.
if !has('job') || !has('clientserver') if !has('job') || !has('clientserver')
finish throw 'Skipped: job and/or clientserver feature missing'
endif endif
source shared.vim source shared.vim

View File

@@ -22,7 +22,7 @@ endfunc
" Debugger tests " Debugger tests
func Test_Debugger() func Test_Debugger()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot run Vim in a terminal window'
endif endif
" Create a Vim script with some functions " Create a Vim script with some functions

View File

@@ -723,7 +723,7 @@ endfunc
func Test_diff_with_cursorline() func Test_diff_with_cursorline()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot run Vim in a terminal window'
endif endif
call writefile([ call writefile([
@@ -750,7 +750,7 @@ endfunc
func Test_diff_of_diff() func Test_diff_of_diff()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot run Vim in a terminal window'
endif endif
if !has("rightleft") if !has("rightleft")
throw 'Skipped: rightleft not supported' throw 'Skipped: rightleft not supported'

View File

@@ -706,7 +706,7 @@ endfunc
func Test_folds_with_rnu() func Test_folds_with_rnu()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot make screendumps'
endif endif
call writefile([ call writefile([

View File

@@ -532,7 +532,7 @@ endfunc
func Test_cursorline_after_yank() func Test_cursorline_after_yank()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot make screendumps'
endif endif
call writefile([ call writefile([
@@ -554,7 +554,7 @@ endfunc
func Test_cursorline_with_visualmode() func Test_cursorline_with_visualmode()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot make screendumps'
endif endif
call writefile([ call writefile([

View File

@@ -496,7 +496,7 @@ func Test_incsearch_substitute_dump()
return return
endif endif
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot make screendumps'
endif endif
call writefile([ call writefile([
\ 'set incsearch hlsearch scrolloff=0', \ 'set incsearch hlsearch scrolloff=0',
@@ -527,7 +527,7 @@ endfunc
func Test_incsearch_with_change() func Test_incsearch_with_change()
if !has('timers') || !exists('+incsearch') || !CanRunVimInTerminal() if !has('timers') || !exists('+incsearch') || !CanRunVimInTerminal()
return throw 'Skipped: cannot make screendumps and/or timers feature and/or incsearch option missing'
endif endif
call writefile([ call writefile([

View File

@@ -63,7 +63,7 @@ endfunc
func Test_detect_ambiwidth() func Test_detect_ambiwidth()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
return throw 'Skipped: cannot run Vim in a terminal window'
endif endif
" Use the title termcap entries to output the escape sequence. " Use the title termcap entries to output the escape sequence.

View File

@@ -496,8 +496,8 @@ endfunc
" Check highlighting for a small piece of C code with a screen dump. " Check highlighting for a small piece of C code with a screen dump.
func Test_syntax_c() func Test_syntax_c()
if !has('terminal') if !CanRunVimInTerminal()
return throw 'Skipped: cannot make screendumps'
endif endif
call writefile([ call writefile([
\ '/* comment line at the top */', \ '/* comment line at the top */',

View File

@@ -558,7 +558,7 @@ endfunc
func Test_tabpage_cmdheight() func Test_tabpage_cmdheight()
if !CanRunVimInTerminal() if !CanRunVimInTerminal()
throw 'Skipped: only works with terminal' throw 'Skipped: cannot make screendumps'
endif endif
call writefile([ call writefile([
\ 'set laststatus=2', \ 'set laststatus=2',