mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:8.2.3526: tests have clumsy check for X11 based GUI
Problem: Tests have clumsy check for X11 based GUI.
Solution: Add CheckX11BasedGui.
40bd5a1540
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
e043dbf0aa
commit
ba9fcc22ef
@ -171,6 +171,14 @@ func CheckNotAsan()
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" Command to check for X11 based GUI
|
||||
command CheckX11BasedGui call CheckX11BasedGui()
|
||||
func CheckX11BasedGui()
|
||||
if !g:x11_based_gui
|
||||
throw 'Skipped: requires X11 based GUI'
|
||||
endif
|
||||
endfunc
|
||||
|
||||
" Command to check for satisfying any of the conditions.
|
||||
" e.g. CheckAnyOf Feature:bsd Feature:sun Linux
|
||||
command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>)
|
||||
|
Loading…
Reference in New Issue
Block a user