0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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)
This commit is contained in:
Bram Moolenaar
2017-03-25 20:14:34 +01:00
parent 8a0141d4e7
commit a683ec44c3
3 changed files with 13 additions and 5 deletions

View File

@@ -11,13 +11,15 @@ func Test_client_server()
if cmd == '' if cmd == ''
return return
endif endif
if has('unix') if has('x11')
if empty($DISPLAY)
throw 'Skipped: $DISPLAY is not set'
endif
try try
call remote_send('xxx', '') call remote_send('xxx', '')
catch catch
if v:exception =~ 'E240:' if v:exception =~ 'E240:'
" No connection to the X server, give up. throw 'Skipped: no connection to the X server'
return
endif endif
" ignore other errors " ignore other errors
endtry endtry

View File

@@ -118,8 +118,12 @@ func Test_quotestar()
if has('macunix') if has('macunix')
let skipped = Do_test_quotestar_for_macunix() let skipped = Do_test_quotestar_for_macunix()
elseif !empty("$DISPLAY") elseif has('x11')
if empty($DISPLAY)
let skipped = "Test can only run when $DISPLAY is set."
else
let skipped = Do_test_quotestar_for_x11() let skipped = Do_test_quotestar_for_x11()
endif
else else
let skipped = "Test is not implemented yet for this platform." let skipped = "Test is not implemented yet for this platform."
endif endif

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
511,
/**/ /**/
510, 510,
/**/ /**/