summaryrefslogtreecommitdiff
path: root/src/testdir/test_gui_init.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-13 20:26:20 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-13 20:26:20 +0200
commit9f0139a2a869b0804e5b91a65e3d5952c9091879 (patch)
treecc1dbfb2b8c6742dd62f910b455200bb620392fd /src/testdir/test_gui_init.vim
parent4f44b886840a90a50575204bc29f72ef309cfaf6 (diff)
downloadvim-git-9f0139a2a869b0804e5b91a65e3d5952c9091879.tar.gz
patch 8.0.0933: terminal test tries to start GUI when it's not possiblev8.0.0933
Problem: Terminal test tries to start GUI when it's not possible. Solution: Check if the GUI can run. (James McCoy, closes #1971)
Diffstat (limited to 'src/testdir/test_gui_init.vim')
-rw-r--r--src/testdir/test_gui_init.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_gui_init.vim b/src/testdir/test_gui_init.vim
index 21e5bb6a7..661bf0ce6 100644
--- a/src/testdir/test_gui_init.vim
+++ b/src/testdir/test_gui_init.vim
@@ -1,7 +1,8 @@
" Tests specifically for the GUI features/options that need to be set up at
" startup to take effect at runtime.
-if !has('gui') || ($DISPLAY == "" && !has('gui_running'))
+source shared.vim
+if !CanRunGui()
finish
endif