diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-24 20:52:08 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-24 22:31:26 -0400 |
commit | 28c3679b641eabea76b67001638aec4884e3d789 (patch) | |
tree | ec51d8b919efc34c07de69cad5347b876fb41714 | |
parent | 72ddbb675fc9cd649feeddef754b65c08bbf21ba (diff) | |
download | rneovim-28c3679b641eabea76b67001638aec4884e3d789.tar.gz rneovim-28c3679b641eabea76b67001638aec4884e3d789.tar.bz2 rneovim-28c3679b641eabea76b67001638aec4884e3d789.zip |
vim-patch:8.0.0805: GUI test fails with gnome2
Problem: GUI test fails with gnome2.
Solution: Set $HOME to an existing directory.
https://github.com/vim/vim/commit/d1ee0043c0360f6b504c0283edd2a844ef73a349
-rw-r--r-- | src/nvim/testdir/runtest.vim | 3 | ||||
-rw-r--r-- | src/nvim/testdir/setup.vim | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index f2cd84f556..8014b76af7 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -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' diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim index aac9fefef4..49656da4d5 100644 --- a/src/nvim/testdir/setup.vim +++ b/src/nvim/testdir/setup.vim @@ -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') |