view src/testdir/setup.vim @ 11637:bcab4e804c20 v8.0.0701

patch 8.0.0701: system test failing when using X11 forwarding commit https://github.com/vim/vim/commit/11e79bb04ea635d180dd79b1d5cbc755b56e66e1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 8 17:03:21 2017 +0200 patch 8.0.0701: system test failing when using X11 forwarding Problem: System test failing when using X11 forwarding. Solution: Set $XAUTHORITY before changing $HOME. (closes https://github.com/vim/vim/issues/1812) Also use a better check for the exit value.
author Christian Brabandt <cb@256bit.org>
date Sat, 08 Jul 2017 17:15:03 +0200
parents 60a06c331524
children eb339f9af281
line wrap: on
line source

" Common preparations for running tests.

" 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.
  let $HOME = '/does/not/exist'
endif