From bce3e9569153354c95fa84d5072d355271e13ae0 Mon Sep 17 00:00:00 2001 From: ckelsel Date: Wed, 30 May 2018 08:40:40 +0800 Subject: vim-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. https://github.com/vim/vim/commit/a2845b8f5a3058c8c89699771ffd4d69513b097d --- src/nvim/testdir/test_quotestar.vim | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/nvim/testdir/test_quotestar.vim b/src/nvim/testdir/test_quotestar.vim index d0dd04f91d..6e4e4caea7 100644 --- a/src/nvim/testdir/test_quotestar.vim +++ b/src/nvim/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 -- cgit