Mercurial > vim
diff src/testdir/test_gui_init.vim @ 12106:d2c20ec4b95a v8.0.0933
patch 8.0.0933: terminal test tries to start GUI when it's not possible
commit https://github.com/vim/vim/commit/9f0139a2a869b0804e5b91a65e3d5952c9091879
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 13 20:26:20 2017 +0200
patch 8.0.0933: terminal test tries to start GUI when it's not possible
Problem: Terminal test tries to start GUI when it's not possible.
Solution: Check if the GUI can run. (James McCoy, closes https://github.com/vim/vim/issues/1971)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 Aug 2017 20:30:05 +0200 |
parents | d8a550329a97 |
children | 33a2277b8d4d |
line wrap: on
line diff
--- 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