mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
e048539195
commit
89b10421ca
@ -2,3 +2,5 @@
|
||||
set shell=csh
|
||||
map! /tmp t:
|
||||
cmap !rm !Delete all
|
||||
|
||||
source setup.vim
|
||||
|
@ -5,3 +5,5 @@ set shell=c:\COMMAND.COM shellquote= shellxquote= shellcmdflag=/c shellredir=>
|
||||
if executable("cmd.exe")
|
||||
set shell=cmd.exe
|
||||
endif
|
||||
|
||||
source setup.vim
|
||||
|
@ -42,6 +42,9 @@ if &lines < 24 || &columns < 80
|
||||
cquit
|
||||
endif
|
||||
|
||||
" Common with all tests on all systems.
|
||||
source setup.vim
|
||||
|
||||
" For consistency run all tests with 'nocompatible' set.
|
||||
" This also enables use of line continuation.
|
||||
set nocp viminfo+=nviminfo
|
||||
@ -55,9 +58,6 @@ lang mess C
|
||||
" Always use forward slashes.
|
||||
set shellslash
|
||||
|
||||
" Make sure $HOME does not get read or written.
|
||||
let $HOME = '/does/not/exist'
|
||||
|
||||
let s:srcdir = expand('%:p:h:h')
|
||||
|
||||
" Prepare for calling test_garbagecollect_now().
|
||||
|
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
|
||||
|
@ -1,3 +1,5 @@
|
||||
" Settings for test script execution
|
||||
" Always use "sh", don't use the value of "$SHELL".
|
||||
set shell=sh
|
||||
|
||||
source setup.vim
|
||||
|
@ -1,4 +1,6 @@
|
||||
" Settings for test script execution under OpenVMS
|
||||
|
||||
" Do not make any swap files
|
||||
" Do not use any swap files
|
||||
set noswapfile
|
||||
|
||||
source setup.vim
|
||||
|
@ -758,6 +758,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2031,
|
||||
/**/
|
||||
2030,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user