blob: 4b6c089637de63372ada0e026aac563bffc20a1e [file] [log] [blame]
Bram Moolenaar89b10422016-07-12 22:51:22 +02001" Common preparations for running tests.
2
Bram Moolenaar66459b72016-08-06 19:01:55 +02003" Make sure 'runtimepath' and 'packpath' does not include $HOME.
Bram Moolenaar89b10422016-07-12 22:51:22 +02004set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
Bram Moolenaarc96a2f32016-08-06 19:45:31 +02005if has('packages')
6 let &packpath = &rtp
7endif
Bram Moolenaar89b10422016-07-12 22:51:22 +02008
9" Only when the +eval feature is present.
10if 1
Bram Moolenaar11e79bb2017-07-08 17:03:21 +020011 " Make sure the .Xauthority file can be found after changing $HOME.
12 if $XAUTHORITY == ''
13 let $XAUTHORITY = $HOME . '/.Xauthority'
14 endif
15
Bram Moolenaar89b10422016-07-12 22:51:22 +020016 " Make sure $HOME does not get read or written.
17 let $HOME = '/does/not/exist'
18endif