]> granicus.if.org Git - vim/commitdiff
patch 8.0.0278: GUI test fails on MS-Windows v8.0.0278
authorBram Moolenaar <Bram@vim.org>
Wed, 1 Feb 2017 11:32:58 +0000 (12:32 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 1 Feb 2017 11:32:58 +0000 (12:32 +0100)
Problem:    GUI test fails on MS-Windows.
Solution:   Check that tester_HOME exists.

src/testdir/test_gui.vim
src/version.c

index fbea706bdfba60d07f36f4be6b03f2873f56072f..14c0ca1f42726f897e657f1c4a5386ed173f8bd4 100644 (file)
@@ -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')
index 3aa178691f8a62ec53c3d4c041363677140eb0da..944dfc9fc693a95f451d139681c02e65df6cac8a 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    278,
 /**/
     277,
 /**/