diff src/testdir/test_clientserver.vim @ 25143:54a547489e49 v8.2.3108

patch 8.2.3108: test for remote_foreground() fails Commit: https://github.com/vim/vim/commit/d6fa7bd5b900dd363d3a824e0ebe3619a1634df6 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 5 14:10:04 2021 +0200 patch 8.2.3108: test for remote_foreground() fails Problem: Test for remote_foreground() fails. (Elimar Riesebieter) Solution: Check that $DISPLAY is set. (Christian Brabandt)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Jul 2021 14:15:05 +0200
parents 493870e7f61d
children a5a772dace5b
line wrap: on
line diff
--- a/src/testdir/test_clientserver.vim
+++ b/src/testdir/test_clientserver.vim
@@ -13,9 +13,7 @@ source shared.vim
 
 func Check_X11_Connection()
   if has('x11')
-    if empty($DISPLAY)
-      throw 'Skipped: $DISPLAY is not set'
-    endif
+    CheckEnv DISPLAY
     try
       call remote_send('xxx', '')
     catch