diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-06 16:12:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-06 16:12:12 +0200 |
commit | 5d30ff19648d2ff0696cea97582b902f6a4ec0ba (patch) | |
tree | 2b932551af5b577566f7d024d6491127ede12451 /src/testdir/test_diffmode.vim | |
parent | f6d50f1da8ed22cd6ff37ade965684dd1fa67a2c (diff) |
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_diffmode.vim')
-rw-r--r-- | src/testdir/test_diffmode.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index 81913c89a9..e5a3f2fcf4 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -748,7 +748,7 @@ endfunc func Test_diff_screen() if !CanRunVimInTerminal() || !has('menu') - return + throw 'Skipped: cannot make screendumps and/or menu feature missing' endif " clean up already existing swap files, just in case call delete('.Xfile1.swp') @@ -880,7 +880,7 @@ endfunc func Test_diff_with_cursorline() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot run Vim in a terminal window' endif call writefile([ @@ -907,7 +907,7 @@ endfunc func Test_diff_of_diff() if !CanRunVimInTerminal() - return + throw 'Skipped: cannot run Vim in a terminal window' endif call writefile([ |