0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.2587: recover test fails on FreeBSD

Problem:    Recover test fails on FreeBSD.
Solution:   Check for Linux.
This commit is contained in:
Bram Moolenaar
2021-03-10 21:46:39 +01:00
parent f52f0606ed
commit 6635ae1437
3 changed files with 14 additions and 3 deletions

View File

@@ -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')

View File

@@ -79,8 +79,9 @@ func Test_swap_file()
endfunc
func Test_nocatch_process_still_running()
" assume Unix means sysinfo.uptime can be used
CheckUnix
" sysinfo.uptime probably only works on Linux
CheckLinux
" the GUI dialog can't be handled
CheckNotGui
" don't intercept existing swap file here

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2587,
/**/
2586,
/**/