diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-05 14:10:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-05 14:10:04 +0200 |
commit | d6fa7bd5b900dd363d3a824e0ebe3619a1634df6 (patch) | |
tree | 53b137d9baeaa83162ac19dcd98a86cabbed4894 /src/testdir/check.vim | |
parent | 22f85d04594e1a09936227ef62955a7939d584b4 (diff) |
patch 8.2.3108: test for remote_foreground() failsv8.2.3108
Problem: Test for remote_foreground() fails. (Elimar Riesebieter)
Solution: Check that $DISPLAY is set. (Christian Brabandt)
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r-- | src/testdir/check.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim index d6bfe004a6..504a1928ef 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -136,6 +136,14 @@ func CheckCanRunGui() endif endfunc +" Command to Check for an environment variable +command -nargs=1 CheckEnv call CheckEnv(<f-args>) +func CheckEnv(name) + if empty('$' .. a:name) + throw 'Skipped: Environment variable ' .. a:name .. ' is not set' + endif +endfunc + " Command to check that we are using the GUI command CheckGui call CheckGui() func CheckGui() |