Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
24090:ecd6f702cbce | 24091:12a773f4f62f |
---|---|
82 if !has('unix') | 82 if !has('unix') |
83 throw 'Skipped: only works on Unix' | 83 throw 'Skipped: only works on Unix' |
84 endif | 84 endif |
85 endfunc | 85 endfunc |
86 | 86 |
87 " Command to check for running on Linix | |
88 command CheckLinux call CheckLinux() | |
89 func CheckLinux() | |
90 if !has('linux') | |
91 throw 'Skipped: only works on Linux' | |
92 endif | |
93 endfunc | |
94 | |
87 " Command to check for not running on a BSD system. | 95 " Command to check for not running on a BSD system. |
88 " TODO: using this checks should not be needed | 96 " TODO: using this check should not be needed |
89 command CheckNotBSD call CheckNotBSD() | 97 command CheckNotBSD call CheckNotBSD() |
90 func CheckNotBSD() | 98 func CheckNotBSD() |
91 if has('bsd') | 99 if has('bsd') |
92 throw 'Skipped: does not work on BSD' | 100 throw 'Skipped: does not work on BSD' |
93 endif | 101 endif |