aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-24 20:56:14 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-24 22:31:26 -0400
commitb0ab46056fe907b4657fe57140c61d540d23b3ca (patch)
treeeb05fa178d5e4d078dea1fc49751030006b53ff1
parent290a9632d60bd97972609a1925d12348ada4889d (diff)
downloadrneovim-b0ab46056fe907b4657fe57140c61d540d23b3ca.tar.gz
rneovim-b0ab46056fe907b4657fe57140c61d540d23b3ca.tar.bz2
rneovim-b0ab46056fe907b4657fe57140c61d540d23b3ca.zip
vim-patch:8.0.0810: MS-Windows: tests still hang
Problem: MS-Windows: tests still hang. Solution: Only create the XfakeHOME directory if it does not exist yet. https://github.com/vim/vim/commit/d0b6c6c54e0f3c2984e1d9b316a587ef14cfd53a
-rw-r--r--src/nvim/testdir/setup.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim
index 8f2cf80c6b..f3cc7da70f 100644
--- a/src/nvim/testdir/setup.vim
+++ b/src/nvim/testdir/setup.vim
@@ -22,8 +22,10 @@ set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
let &packpath = &rtp
" Make sure $HOME does not get read or written.
-let $HOME = getcwd() . '/XfakeHOME'
-call mkdir($HOME)
+let $HOME = expand(getcwd() . '/XfakeHOME')
+if !isdirectory($HOME)
+ call mkdir($HOME)
+endif
" Use default shell on Windows to avoid segfault, caused by TUI
if has('win32')