From fa94c4c2d917b70df443ba0ebcd87da35dc1bb30 Mon Sep 17 00:00:00 2001 From: Shougo Date: Mon, 16 Jan 2017 20:50:43 +0900 Subject: vim-patch:7.4.2031 (#5955) 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 vim/vim#912) https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb --- src/nvim/testdir/setup.vim | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/nvim/testdir/setup.vim (limited to 'src/nvim/testdir/setup.vim') diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim new file mode 100644 index 0000000000..52876d1e6c --- /dev/null +++ b/src/nvim/testdir/setup.vim @@ -0,0 +1,7 @@ +" Common preparations for running tests. + +" Make sure 'runtimepath' does not include $HOME. +set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after + +" Make sure $HOME does not get read or written. +let $HOME = '/does/not/exist' -- cgit