changeset 10777:80b286d6d38d v8.0.0278

patch 8.0.0278: GUI test fails on MS-Windows commit https://github.com/vim/vim/commit/f1ab9c137060a4d3aa1e69bcbbed02342cd746a3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 12:32:58 2017 +0100 patch 8.0.0278: GUI test fails on MS-Windows Problem: GUI test fails on MS-Windows. Solution: Check that tester_HOME exists.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 12:45:03 +0100
parents 74aee6c02b6a
children e8b12aefdc77
files src/testdir/test_gui.vim src/version.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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')
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    278,
+/**/
     277,
 /**/
     276,