diff src/testdir/check.vim @ 18736:97d534e17874 v8.1.2358

patch 8.1.2358: tests fail on Cirrus CI for FreeBSD Commit: https://github.com/vim/vim/commit/9134f1ecd41207045db3cb47f0269497980395ad Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 29 20:26:13 2019 +0100 patch 8.1.2358: tests fail on Cirrus CI for FreeBSD Problem: Tests fail on Cirrus CI for FreeBSD. Solution: Fix a test and skip some. (Christian Brabandt, closes https://github.com/vim/vim/issues/5281)
author Bram Moolenaar <Bram@vim.org>
date Fri, 29 Nov 2019 20:30:05 +0100
parents f6dcf7eabd26
children 77cce0439714
line wrap: on
line diff
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -64,6 +64,15 @@ func CheckUnix()
   endif
 endfunc
 
+" Command to check for not running on a BSD system.
+" TODO: using this checks should not be needed
+command CheckNotBSD call CheckNotBSD()
+func CheckNotBSD()
+  if has('bsd')
+    throw 'Skipped: does not work on BSD'
+  endif
+endfunc
+
 " Command to check that making screendumps is supported.
 " Caller must source screendump.vim
 command CheckScreendump call CheckScreendump()