patch 8.0.0511: message for skipping client-server tests is unclear
Problem: Menuage for skipping client-server tests is unclear.
Solution: Be more specific about what's missing (Hirohito Higashi, Kazunobu
Kuriyama)
diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim
index 58ced56..86dad54 100644
--- a/src/testdir/test_clientserver.vim
+++ b/src/testdir/test_clientserver.vim
@@ -11,13 +11,15 @@
if cmd == ''
return
endif
- if has('unix')
+ if has('x11')
+ if empty($DISPLAY)
+ throw 'Skipped: $DISPLAY is not set'
+ endif
try
call remote_send('xxx', '')
catch
if v:exception =~ 'E240:'
- " No connection to the X server, give up.
- return
+ throw 'Skipped: no connection to the X server'
endif
" ignore other errors
endtry