summaryrefslogtreecommitdiff
path: root/src/testdir/test_search.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-06 16:12:12 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-06 16:12:12 +0200
commit5d30ff19648d2ff0696cea97582b902f6a4ec0ba (patch)
tree2b932551af5b577566f7d024d6491127ede12451 /src/testdir/test_search.vim
parentf6d50f1da8ed22cd6ff37ade965684dd1fa67a2c (diff)
downloadvim-git-5d30ff19648d2ff0696cea97582b902f6a4ec0ba.tar.gz
patch 8.1.1483: skipped tests are not properly listedv8.1.1483
Problem: Skipped tests are not properly listed. Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".
Diffstat (limited to 'src/testdir/test_search.vim')
-rw-r--r--src/testdir/test_search.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim
index 8090deeeb..2765c8cbf 100644
--- a/src/testdir/test_search.vim
+++ b/src/testdir/test_search.vim
@@ -799,7 +799,7 @@ endfunc
func Test_incsearch_scrolling()
if !CanRunVimInTerminal()
- return
+ throw 'Skipped: cannot make screendumps'
endif
call assert_equal(0, &scrolloff)
call writefile([
@@ -832,7 +832,7 @@ func Test_incsearch_search_dump()
return
endif
if !CanRunVimInTerminal()
- return
+ throw 'Skipped: cannot make screendumps'
endif
call writefile([
\ 'set incsearch hlsearch scrolloff=0',
@@ -887,7 +887,7 @@ func Test_incsearch_substitute_dump()
return
endif
if !CanRunVimInTerminal()
- return
+ throw 'Skipped: cannot make screendumps'
endif
call writefile([
\ 'set incsearch hlsearch scrolloff=0',
@@ -983,7 +983,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([
@@ -1011,7 +1011,7 @@ func Test_incsearch_sort_dump()
return
endif
if !CanRunVimInTerminal()
- return
+ throw 'Skipped: cannot make screendumps'
endif
call writefile([
\ 'set incsearch hlsearch scrolloff=0',
@@ -1037,7 +1037,7 @@ func Test_incsearch_vimgrep_dump()
return
endif
if !CanRunVimInTerminal()
- return
+ throw 'Skipped: cannot make screendumps'
endif
call writefile([
\ 'set incsearch hlsearch scrolloff=0',