Bram Moolenaar | 89b1042 | 2016-07-12 22:51:22 +0200 | [diff] [blame] | 1 | " Common preparations for running tests. |
| 2 | |
Bram Moolenaar | 66459b7 | 2016-08-06 19:01:55 +0200 | [diff] [blame] | 3 | " Make sure 'runtimepath' and 'packpath' does not include $HOME. |
Bram Moolenaar | 89b1042 | 2016-07-12 22:51:22 +0200 | [diff] [blame] | 4 | set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after |
Bram Moolenaar | c96a2f3 | 2016-08-06 19:45:31 +0200 | [diff] [blame] | 5 | if has('packages') |
| 6 | let &packpath = &rtp |
| 7 | endif |
Bram Moolenaar | 89b1042 | 2016-07-12 22:51:22 +0200 | [diff] [blame] | 8 | |
| 9 | " Only when the +eval feature is present. |
| 10 | if 1 |
| 11 | " Make sure $HOME does not get read or written. |
| 12 | let $HOME = '/does/not/exist' |
| 13 | endif |
| 14 | |