diff src/testdir/test_vim9_builtin.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 e38a406ccc46
children 14448e7acdb2
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -1415,6 +1415,8 @@ def Test_remote_foreground()
   CheckFeature clientserver
   # remote_foreground() doesn't fail on MS-Windows
   CheckNotMSWindows
+  CheckEnv DISPLAY
+
   CheckDefFailure(['remote_foreground(10)'], 'E1013: Argument 1: type mismatch, expected string but got number')
   assert_fails('remote_foreground("NonExistingServer")', 'E241:')
 enddef