mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
vim-patch:8.2.2587: recover test fails on FreeBSD
Problem: Recover test fails on FreeBSD.
Solution: Check for Linux.
6635ae1437
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -90,6 +90,14 @@ func CheckUnix()
|
|||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Command to check for running on Linux
|
||||||
|
command CheckLinux call CheckLinux()
|
||||||
|
func CheckLinux()
|
||||||
|
if !has('linux')
|
||||||
|
throw 'Skipped: only works on Linux'
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Command to check that making screendumps is supported.
|
" Command to check that making screendumps is supported.
|
||||||
" Caller must source screendump.vim
|
" Caller must source screendump.vim
|
||||||
command CheckScreendump call CheckScreendump()
|
command CheckScreendump call CheckScreendump()
|
||||||
|
@@ -82,8 +82,9 @@ func Test_swap_file()
|
|||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func Test_nocatch_process_still_running()
|
func Test_nocatch_process_still_running()
|
||||||
" assume Unix means sysinfo.uptime can be used
|
" sysinfo.uptime probably only works on Linux
|
||||||
CheckUnix
|
CheckLinux
|
||||||
|
" the GUI dialog can't be handled
|
||||||
CheckNotGui
|
CheckNotGui
|
||||||
|
|
||||||
" don't intercept existing swap file here
|
" don't intercept existing swap file here
|
||||||
|
Reference in New Issue
Block a user