summaryrefslogtreecommitdiff
path: root/src/testdir/test_quotestar.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-25 15:20:06 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-25 15:20:06 +0100
commita2845b8f5a3058c8c89699771ffd4d69513b097d (patch)
tree91a7aec225fe0293da00f6f8261c1986c0cff9ab /src/testdir/test_quotestar.vim
parent6c0c1e8052811a818739e2f3d543291b7a347ad0 (diff)
downloadvim-a2845b8f5a3058c8c89699771ffd4d69513b097d.zip
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Problem: Client-server tests fail when $DISPLAY is not set. Solution: Check for E240 before running the test.
Diffstat (limited to 'src/testdir/test_quotestar.vim')
-rw-r--r--src/testdir/test_quotestar.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_quotestar.vim b/src/testdir/test_quotestar.vim
index d0dd04f91..6e4e4caea 100644
--- a/src/testdir/test_quotestar.vim
+++ b/src/testdir/test_quotestar.vim
@@ -39,6 +39,15 @@ func Do_test_quotestar_for_x11()
if cmd == ''
return 'GetVimCommand() failed'
endif
+ try
+ call remote_send('xxx', '')
+ catch
+ if v:exception =~ 'E240:'
+ " No connection to the X server, give up.
+ return
+ endif
+ " ignore other errors
+ endtry
let name = 'XVIMCLIPBOARD'
let cmd .= ' --servername ' . name