view src/testdir/setup.vim @ 11858:042e634bb8d9 v8.0.0809

patch 8.0.0809: MS-Windows: tests hang commit https://github.com/vim/vim/commit/30fe88677dd2b16e733ca0ac14edc8d70c7259fc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 29 23:01:57 2017 +0200 patch 8.0.0809: MS-Windows: tests hang Problem: MS-Windows: tests hang. Solution: Delete the XfakeHOME directory.
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Jul 2017 23:15:04 +0200
parents 825a4717f14a
children 4276e114b34a
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'
  call mkdir($HOME)
endif