diff options
author | Daniel Hahler <git@thequod.de> | 2019-08-20 03:07:42 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-08-22 05:06:30 +0200 |
commit | 9e24bbb52f371cfb79c8bb8f37d2bdabf8c80d76 (patch) | |
tree | e187a35d040a775aab320aad7d3cd995ab1890c8 | |
parent | 77729b080055aa51fbaa5c7f2e5520abd4c3853a (diff) | |
download | rneovim-9e24bbb52f371cfb79c8bb8f37d2bdabf8c80d76.tar.gz rneovim-9e24bbb52f371cfb79c8bb8f37d2bdabf8c80d76.tar.bz2 rneovim-9e24bbb52f371cfb79c8bb8f37d2bdabf8c80d76.zip |
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".
https://github.com/vim/vim/commit/5d30ff19648d2ff0696cea97582b902f6a4ec0ba
Skips quite some (N/A) tests.
vim-patch:8.1.0503: missing change to diff test (included in cf1ffa916)
-rw-r--r-- | src/nvim/testdir/test_breakindent.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_clientserver.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_debugger.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_diffmode.vim | 4 | ||||
-rw-r--r-- | src/nvim/testdir/test_fold.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_highlight.vim | 4 | ||||
-rw-r--r-- | src/nvim/testdir/test_search.vim | 4 | ||||
-rw-r--r-- | src/nvim/testdir/test_startup_utf8.vim | 2 | ||||
-rw-r--r-- | src/nvim/testdir/test_syntax.vim | 4 | ||||
-rw-r--r-- | src/nvim/testdir/test_tabpage.vim | 2 |
10 files changed, 14 insertions, 14 deletions
diff --git a/src/nvim/testdir/test_breakindent.vim b/src/nvim/testdir/test_breakindent.vim index 7deffbe452..4b34420cab 100644 --- a/src/nvim/testdir/test_breakindent.vim +++ b/src/nvim/testdir/test_breakindent.vim @@ -5,7 +5,7 @@ " It helps to change the tabstop setting and force a redraw (e.g. see " Test_breakindent08()) if !exists('+breakindent') - finish + throw 'Skipped: breakindent option not supported' endif source view_util.vim diff --git a/src/nvim/testdir/test_clientserver.vim b/src/nvim/testdir/test_clientserver.vim index 02840de743..46ac59b3b1 100644 --- a/src/nvim/testdir/test_clientserver.vim +++ b/src/nvim/testdir/test_clientserver.vim @@ -1,7 +1,7 @@ " Tests for the +clientserver feature. if !has('job') || !has('clientserver') - finish + throw 'Skipped: job and/or clientserver feature missing' endif source shared.vim diff --git a/src/nvim/testdir/test_debugger.vim b/src/nvim/testdir/test_debugger.vim index bb87ef9c58..3ef460b4fe 100644 --- a/src/nvim/testdir/test_debugger.vim +++ b/src/nvim/testdir/test_debugger.vim @@ -22,7 +22,7 @@ endfunc " Debugger tests func Test_Debugger() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot run Vim in a terminal window' endif " Create a Vim script with some functions diff --git a/src/nvim/testdir/test_diffmode.vim b/src/nvim/testdir/test_diffmode.vim index 1ba36ca8e9..57b19aa817 100644 --- a/src/nvim/testdir/test_diffmode.vim +++ b/src/nvim/testdir/test_diffmode.vim @@ -723,7 +723,7 @@ endfunc func Test_diff_with_cursorline() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot run Vim in a terminal window' endif call writefile([ @@ -750,7 +750,7 @@ endfunc func Test_diff_of_diff() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot run Vim in a terminal window' endif if !has("rightleft") throw 'Skipped: rightleft not supported' diff --git a/src/nvim/testdir/test_fold.vim b/src/nvim/testdir/test_fold.vim index 4036eae678..3cb42579be 100644 --- a/src/nvim/testdir/test_fold.vim +++ b/src/nvim/testdir/test_fold.vim @@ -706,7 +706,7 @@ endfunc func Test_folds_with_rnu() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot make screendumps' endif call writefile([ diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index e751fb5d16..78ec26fd05 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -532,7 +532,7 @@ endfunc func Test_cursorline_after_yank() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot make screendumps' endif call writefile([ @@ -554,7 +554,7 @@ endfunc func Test_cursorline_with_visualmode() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot make screendumps' endif call writefile([ diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index 7df48eaa5f..5d4c2a015f 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -496,7 +496,7 @@ func Test_incsearch_substitute_dump() return endif if !CanRunVimInTerminal() - return + throw 'Skipped: cannot make screendumps' endif call writefile([ \ 'set incsearch hlsearch scrolloff=0', @@ -527,7 +527,7 @@ endfunc func Test_incsearch_with_change() if !has('timers') || !exists('+incsearch') || !CanRunVimInTerminal() - return + throw 'Skipped: cannot make screendumps and/or timers feature and/or incsearch option missing' endif call writefile([ diff --git a/src/nvim/testdir/test_startup_utf8.vim b/src/nvim/testdir/test_startup_utf8.vim index f7e02d9cca..b24b0eb5cf 100644 --- a/src/nvim/testdir/test_startup_utf8.vim +++ b/src/nvim/testdir/test_startup_utf8.vim @@ -63,7 +63,7 @@ endfunc func Test_detect_ambiwidth() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot run Vim in a terminal window' endif " Use the title termcap entries to output the escape sequence. diff --git a/src/nvim/testdir/test_syntax.vim b/src/nvim/testdir/test_syntax.vim index f75c295a1e..fc0dc6693c 100644 --- a/src/nvim/testdir/test_syntax.vim +++ b/src/nvim/testdir/test_syntax.vim @@ -496,8 +496,8 @@ endfunc " Check highlighting for a small piece of C code with a screen dump. func Test_syntax_c() - if !has('terminal') - return + if !CanRunVimInTerminal() + throw 'Skipped: cannot make screendumps' endif call writefile([ \ '/* comment line at the top */', diff --git a/src/nvim/testdir/test_tabpage.vim b/src/nvim/testdir/test_tabpage.vim index 8043d13433..c35ddc4473 100644 --- a/src/nvim/testdir/test_tabpage.vim +++ b/src/nvim/testdir/test_tabpage.vim @@ -558,7 +558,7 @@ endfunc func Test_tabpage_cmdheight() if !CanRunVimInTerminal() - throw 'Skipped: only works with terminal' + throw 'Skipped: cannot make screendumps' endif call writefile([ \ 'set laststatus=2', |