summaryrefslogtreecommitdiffstats
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-03-10 21:46:39 +0100
committerBram Moolenaar <Bram@vim.org>2021-03-10 21:46:39 +0100
commit6635ae1437e6e343c0514524a8dfb19d9525b908 (patch)
treec14cebf7436e087d3c036bc5279af577de57b965 /src/testdir/check.vim
parentf52f0606ed9ea19bcfc3a8343af9958f2d99eaf7 (diff)
patch 8.2.2587: recover test fails on FreeBSDv8.2.2587
Problem: Recover test fails on FreeBSD. Solution: Check for Linux.
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index e5298bc530..db16cfb7d9 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -84,8 +84,16 @@ func CheckUnix()
endif
endfunc
+" Command to check for running on Linix
+command CheckLinux call CheckLinux()
+func CheckLinux()
+ if !has('linux')
+ throw 'Skipped: only works on Linux'
+ endif
+endfunc
+
" Command to check for not running on a BSD system.
-" TODO: using this checks should not be needed
+" TODO: using this check should not be needed
command CheckNotBSD call CheckNotBSD()
func CheckNotBSD()
if has('bsd')