diff src/testdir/setup.vim @ 11860:4276e114b34a v8.0.0810

patch 8.0.0810: MS-Windows: tests still hang commit https://github.com/vim/vim/commit/d0b6c6c54e0f3c2984e1d9b316a587ef14cfd53a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 30 13:28:23 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Jul 2017 13:30:04 +0200
parents 825a4717f14a
children 16647bd6372c
line wrap: on
line diff
--- 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