diff src/testdir/check.vim @ 24091:12a773f4f62f v8.2.2587

patch 8.2.2587: recover test fails on FreeBSD Commit: https://github.com/vim/vim/commit/6635ae1437e6e343c0514524a8dfb19d9525b908 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 10 21:46:39 2021 +0100 patch 8.2.2587: recover test fails on FreeBSD Problem: Recover test fails on FreeBSD. Solution: Check for Linux.
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Mar 2021 22:00:03 +0100
parents 704fdd4d0949
children af489e854955
line wrap: on
line diff
--- 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')