diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-12 22:51:22 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-12 22:51:22 +0200 |
commit | 89b10421ca1aea55acbafac1df93be4e20210ceb (patch) | |
tree | 1d1bc73cedd32510fd398da16a528b71e6f58e82 /src/testdir/setup.vim | |
parent | e048539195e1c0a060cf41b39fca118130bdc151 (diff) | |
download | vim-git-89b10421ca1aea55acbafac1df93be4e20210ceb.tar.gz |
patch 7.4.2031v7.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)
Diffstat (limited to 'src/testdir/setup.vim')
-rw-r--r-- | src/testdir/setup.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim new file mode 100644 index 000000000..f7e475a81 --- /dev/null +++ b/src/testdir/setup.vim @@ -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 + |