Mercurial > vim
view 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 source
" Common preparations for running tests. " Only load this once. if 1 if exists('s:did_load') finish endif let s:did_load = 1 endif " Make sure 'runtimepath' and 'packpath' does not include $HOME. set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after if has('packages') let &packpath = &rtp endif " Only when the +eval feature is present. if 1 " Make sure the .Xauthority file can be found after changing $HOME. if $XAUTHORITY == '' let $XAUTHORITY = $HOME . '/.Xauthority' endif " Make sure $HOME does not get read or written. " It must exist, gnome tries to create $HOME/.gnome2 let $HOME = getcwd() . '/XfakeHOME' if !isdirectory($HOME) call mkdir($HOME) endif endif