xref: /vim-8.2.3635/src/testdir/setup.vim (revision b2a76ec0)
1" Common preparations for running tests.
2
3" Make sure 'runtimepath' and 'packpath' does not include $HOME.
4set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
5if has('packages')
6  let &packpath = &rtp
7endif
8
9" Only when the +eval feature is present.
10if 1
11  " Make sure the .Xauthority file can be found after changing $HOME.
12  if $XAUTHORITY == ''
13    let $XAUTHORITY = $HOME . '/.Xauthority'
14  endif
15
16  " Make sure $HOME does not get read or written.
17  let $HOME = '/does/not/exist'
18endif
19