diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-25 15:20:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-25 15:20:06 +0100 |
commit | a2845b8f5a3058c8c89699771ffd4d69513b097d (patch) | |
tree | 91a7aec225fe0293da00f6f8261c1986c0cff9ab /src/testdir/test_quotestar.vim | |
parent | 6c0c1e8052811a818739e2f3d543291b7a347ad0 (diff) | |
download | vim-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.vim | 9 |
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 |