summaryrefslogtreecommitdiff
path: root/src/testdir/test_termcodes.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-13 22:19:53 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-13 22:19:53 +0200
commitb0f94c1ff34d27d33aa9f96204985ea29c2eb0a1 (patch)
tree257407d2c2c31bff552c749fd9296642fc7f55c2 /src/testdir/test_termcodes.vim
parent8d241040310a6a27c28d62fa04558f2bfaa5ebde (diff)
downloadvim-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_termcodes.vim')
-rw-r--r--src/testdir/test_termcodes.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim
index 9cfc64983..9d7f6b5fa 100644
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -1,8 +1,11 @@
" Tests for decoding escape sequences sent by the terminal.
" This only works for Unix in a terminal
-if has('gui_running') || !has('unix')
- finish
+if has('gui_running')
+ throw 'Skipped, does not work in the GUI'
+endif
+if !has('unix')
+ throw 'Skipped, not on Unix'
endif
source shared.vim