view src/testdir/setup.vim @ 9784:60a06c331524 v7.4.2167

commit https://github.com/vim/vim/commit/c96a2f3b887d9a1f850f0dacc92616bee11f966b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 6 19:45:31 2016 +0200 patch 7.4.2167 Problem: Small build can't run tests. Solution: Don't try setting 'packpath'.
author Christian Brabandt <cb@256bit.org>
date Sat, 06 Aug 2016 20:00:07 +0200
parents 4360b2b46125
children bcab4e804c20
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 $HOME does not get read or written.
  let $HOME = '/does/not/exist'
endif