mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
patch 9.2.0117: tests: test_wayland.vim fails
Problem: tests: test_wayland.vim fails when X11 is not available or
$XDG_RUNTIME_DIR is not defined
Solution: Skip test_wayland when prerequisites are not fulfilled
closes: #19579
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -6,6 +6,7 @@ CheckUnix
|
||||
CheckFeature job
|
||||
CheckWaylandCompositor
|
||||
CheckNotGui
|
||||
CheckEnv XDG_RUNTIME_DIR
|
||||
|
||||
if !executable('wl-paste') || !executable('wl-copy')
|
||||
throw "Skipped: wl-clipboard is not available"
|
||||
@@ -58,6 +59,10 @@ endfunc
|
||||
func s:CheckClientserver()
|
||||
CheckFeature clientserver
|
||||
|
||||
if has('x11')
|
||||
CheckEnv DISPLAY
|
||||
endif
|
||||
|
||||
if has('socketserver') && !has('x11')
|
||||
if v:servername == ""
|
||||
call remote_startserver('VIMSOCKETSERVER')
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
117,
|
||||
/**/
|
||||
116,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user