forked from aniani/vim
patch 7.4.2031
Problem: The list_lbr_utf8 test fails if ~/.vim/syntax/c.vim sets
'textwidth' to a non-zero value. (Oyvind A. Holm)
Solution: Add a setup.vim file that sets 'runtimepath' and $HOME to a safe
value. (partly by Christian Brabandt, closes #912)
This commit is contained in:
11
src/testdir/setup.vim
Normal file
11
src/testdir/setup.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
" Common preparations for running tests.
|
||||
|
||||
" Make sure 'runtimepath' does not include $HOME.
|
||||
set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
|
||||
|
||||
" Only when the +eval feature is present.
|
||||
if 1
|
||||
" Make sure $HOME does not get read or written.
|
||||
let $HOME = '/does/not/exist'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user