aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_search.vim
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-20 03:07:42 +0200
committerDaniel Hahler <git@thequod.de>2019-08-22 05:06:30 +0200
commit9e24bbb52f371cfb79c8bb8f37d2bdabf8c80d76 (patch)
treee187a35d040a775aab320aad7d3cd995ab1890c8 /src/nvim/testdir/test_search.vim
parent77729b080055aa51fbaa5c7f2e5520abd4c3853a (diff)
downloadrneovim-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)
Diffstat (limited to 'src/nvim/testdir/test_search.vim')
-rw-r--r--src/nvim/testdir/test_search.vim4
1 files changed, 2 insertions, 2 deletions
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([