Mercurial > vim
comparison src/testdir/runtest.vim @ 9501:f0201deac2a2 v7.4.2031
commit https://github.com/vim/vim/commit/89b10421ca1aea55acbafac1df93be4e20210ceb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jul 12 22:51:22 2016 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 12 Jul 2016 23:00:06 +0200 |
parents | 6d5c24b8dc0e |
children | 81ba6e4eb72b |
comparison
equal
deleted
inserted
replaced
9500:8b84bbba325e | 9501:f0201deac2a2 |
---|---|
40 $put =error | 40 $put =error |
41 w | 41 w |
42 cquit | 42 cquit |
43 endif | 43 endif |
44 | 44 |
45 " Common with all tests on all systems. | |
46 source setup.vim | |
47 | |
45 " For consistency run all tests with 'nocompatible' set. | 48 " For consistency run all tests with 'nocompatible' set. |
46 " This also enables use of line continuation. | 49 " This also enables use of line continuation. |
47 set nocp viminfo+=nviminfo | 50 set nocp viminfo+=nviminfo |
48 | 51 |
49 " Avoid stopping at the "hit enter" prompt | 52 " Avoid stopping at the "hit enter" prompt |
52 " Output all messages in English. | 55 " Output all messages in English. |
53 lang mess C | 56 lang mess C |
54 | 57 |
55 " Always use forward slashes. | 58 " Always use forward slashes. |
56 set shellslash | 59 set shellslash |
57 | |
58 " Make sure $HOME does not get read or written. | |
59 let $HOME = '/does/not/exist' | |
60 | 60 |
61 let s:srcdir = expand('%:p:h:h') | 61 let s:srcdir = expand('%:p:h:h') |
62 | 62 |
63 " Prepare for calling test_garbagecollect_now(). | 63 " Prepare for calling test_garbagecollect_now(). |
64 let v:testing = 1 | 64 let v:testing = 1 |