diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-13 22:19:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-13 22:19:53 +0200 |
commit | b0f94c1ff34d27d33aa9f96204985ea29c2eb0a1 (patch) | |
tree | 257407d2c2c31bff552c749fd9296642fc7f55c2 /src/testdir/test_cscope.vim | |
parent | 8d241040310a6a27c28d62fa04558f2bfaa5ebde (diff) | |
download | vim-git-b0f94c1ff34d27d33aa9f96204985ea29c2eb0a1.tar.gz |
patch 8.1.1524: tests are silently skippedv8.1.1524
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
Diffstat (limited to 'src/testdir/test_cscope.vim')
-rw-r--r-- | src/testdir/test_cscope.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testdir/test_cscope.vim b/src/testdir/test_cscope.vim index 7795ac7af..a3fcbd77b 100644 --- a/src/testdir/test_cscope.vim +++ b/src/testdir/test_cscope.vim @@ -1,7 +1,10 @@ " Test for cscope commands. -if !has('cscope') || !executable('cscope') || !has('quickfix') - finish +if !has('cscope') || !has('quickfix') + throw 'Skipped, cscope or quickfix feature missing' +endif +if !executable('cscope') + throw 'Skipped, cscope program missing' endif func CscopeSetupOrClean(setup) |