summaryrefslogtreecommitdiff
path: root/src/testdir/setup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-30 13:28:23 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-30 13:28:23 +0200
commitd0b6c6c54e0f3c2984e1d9b316a587ef14cfd53a (patch)
treef86d2af3067c54380d5799d44188bdf62726cf95 /src/testdir/setup.vim
parent30fe88677dd2b16e733ca0ac14edc8d70c7259fc (diff)
downloadvim-git-d0b6c6c54e0f3c2984e1d9b316a587ef14cfd53a.tar.gz
patch 8.0.0810: MS-Windows: tests still hangv8.0.0810
Problem: MS-Windows: tests still hang. Solution: Only create the XfakeHOME directory if it does not exist yet.
Diffstat (limited to 'src/testdir/setup.vim')
-rw-r--r--src/testdir/setup.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim
index 31b133f10..cb8bebb47 100644
--- a/src/testdir/setup.vim
+++ b/src/testdir/setup.vim
@@ -24,5 +24,7 @@ if 1
" Make sure $HOME does not get read or written.
" It must exist, gnome tries to create $HOME/.gnome2
let $HOME = getcwd() . '/XfakeHOME'
- call mkdir($HOME)
+ if !isdirectory($HOME)
+ call mkdir($HOME)
+ endif
endif