vim-patch:8.0.0805: GUI test fails with gnome2

Problem:    GUI test fails with gnome2.
Solution:   Set $HOME to an existing directory.
d1ee0043c0
This commit is contained in:
Jan Edmund Lazo
2018-07-24 20:52:08 -04:00
parent 72ddbb675f
commit 28c3679b64
2 changed files with 5 additions and 1 deletions

View File

@@ -173,6 +173,9 @@ func FinishTesting()
" Don't write viminfo on exit.
set viminfo=
" Clean up files created by setup.vim
call delete('XfakeHOME', 'rf')
if s:fail == 0
" Success, create the .res file so that make knows it's done.
exe 'split ' . fnamemodify(g:testname, ':r') . '.res'

View File

@@ -16,7 +16,8 @@ set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
let &packpath = &rtp
" Make sure $HOME does not get read or written.
let $HOME = '/does/not/exist'
let $HOME = getcwd() . '/XfakeHOME'
call mkdir($HOME)
" Use default shell on Windows to avoid segfault, caused by TUI
if has('win32')