summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_clientserver.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-25 20:14:34 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-25 20:14:34 +0100
commita683ec44c34f0717dcc6a0c03493ba39b879ac38 (patch)
tree8cf302c50d2c326bf61cb6553786269a2281ce47 /src/testdir/test_clientserver.vim
parent8a0141d4e7054587281d3bfd09480376b1fc719f (diff)
patch 8.0.0511: message for skipping client-server tests is unclearv8.0.0511
Problem: Menuage for skipping client-server tests is unclear. Solution: Be more specific about what's missing (Hirohito Higashi, Kazunobu Kuriyama)
Diffstat (limited to 'src/testdir/test_clientserver.vim')
-rw-r--r--src/testdir/test_clientserver.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testdir/test_clientserver.vim b/src/testdir/test_clientserver.vim
index 58ced56ce3..86dad54d70 100644
--- a/src/testdir/test_clientserver.vim
+++ b/src/testdir/test_clientserver.vim
@@ -11,13 +11,15 @@ func Test_client_server()
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