diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-01 12:32:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-01 12:32:58 +0100 |
commit | f1ab9c137060a4d3aa1e69bcbbed02342cd746a3 (patch) | |
tree | 1a99cec39f30238f3ebac7362bd3b10f7901718c /src/testdir/test_gui.vim | |
parent | 56e6bd7ba2edcb069f55c3515341537c654a9046 (diff) | |
download | vim-f1ab9c137060a4d3aa1e69bcbbed02342cd746a3.zip |
patch 8.0.0278: GUI test fails on MS-Windows
Problem: GUI test fails on MS-Windows.
Solution: Check that tester_HOME exists.
Diffstat (limited to 'src/testdir/test_gui.vim')
-rw-r--r-- | src/testdir/test_gui.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index fbea706bd..14c0ca1f4 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -10,9 +10,10 @@ func SetUp() set guifont=Courier\ 10\ Pitch/8/-1/5/50/0/0/0/0/0 endif - " Gnome insists on creating $HOME/.gnome2/, and we're going to abide by - " that, taking care to have the font cache work normally. - if $XDG_CACHE_HOME == '' + " Gnome insists on creating $HOME/.gnome2/, set $HOME to avoid changing the + " actual home directory. But avoid triggering fontconfig by setting the + " cache directory. Only needed for Unix. + if $XDG_CACHE_HOME == '' && exists('g:tester_HOME') let $XDG_CACHE_HOME = g:tester_HOME . '/.cache' endif call mkdir('Xhome') |