comparison src/testdir/test_clientserver.vim @ 11250:ca5550f66b27 v8.0.0511

patch 8.0.0511: message for skipping client-server tests is unclear commit https://github.com/vim/vim/commit/a683ec44c34f0717dcc6a0c03493ba39b879ac38 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 25 20:14:34 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Sat, 25 Mar 2017 20:15:04 +0100
parents 9612b93820a4
children f0d050a452c5
comparison
equal deleted inserted replaced
11249:6d762dc2a79c 11250:ca5550f66b27
9 func Test_client_server() 9 func Test_client_server()
10 let cmd = GetVimCommand() 10 let cmd = GetVimCommand()
11 if cmd == '' 11 if cmd == ''
12 return 12 return
13 endif 13 endif
14 if has('unix') 14 if has('x11')
15 if empty($DISPLAY)
16 throw 'Skipped: $DISPLAY is not set'
17 endif
15 try 18 try
16 call remote_send('xxx', '') 19 call remote_send('xxx', '')
17 catch 20 catch
18 if v:exception =~ 'E240:' 21 if v:exception =~ 'E240:'
19 " No connection to the X server, give up. 22 throw 'Skipped: no connection to the X server'
20 return
21 endif 23 endif
22 " ignore other errors 24 " ignore other errors
23 endtry 25 endtry
24 endif 26 endif
25 27