Mercurial > vim
diff src/testdir/test_diffmode.vim @ 16965:ba7727889385 v8.1.1483
patch 8.1.1483: skipped tests are not properly listed
commit https://github.com/vim/vim/commit/5d30ff19648d2ff0696cea97582b902f6a4ec0ba
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 6 16:12:12 2019 +0200
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 06 Jun 2019 16:15:05 +0200 |
parents | 5a2033905f19 |
children | 9508c12eec55 |
line wrap: on
line diff
--- 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([