]> granicus.if.org Git - vim/commitdiff
patch 7.4.2031 v7.4.2031
authorBram Moolenaar <Bram@vim.org>
Tue, 12 Jul 2016 20:51:22 +0000 (22:51 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 12 Jul 2016 20:51:22 +0000 (22:51 +0200)
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)

src/testdir/amiga.vim
src/testdir/dos.vim
src/testdir/runtest.vim
src/testdir/setup.vim [new file with mode: 0644]
src/testdir/unix.vim
src/testdir/vms.vim
src/version.c

index e0ca47a8ed5c1b2ad476f537915a7a58a9020346..79956d7d949c27515c4d7bbd4b6945c831d2afcb 100644 (file)
@@ -2,3 +2,5 @@
 set shell=csh
 map! /tmp t:
 cmap !rm !Delete all
+
+source setup.vim
index 27764db9d94d13c6a5ac8aede9e66d302309ff37..3ea6ab2a6d3cff04187eba79d40a3a35065d58ff 100644 (file)
@@ -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
index c094da031719bd4b9e1b7b709ee93ba793c7035b..559d5f875acc6e3358175c73e2ca10d941617c23 100644 (file)
@@ -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().
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim
new file mode 100644 (file)
index 0000000..f7e475a
--- /dev/null
@@ -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
+
index f766e74c30d2a8f8642f1ece40aa88da8466932a..36dd4e1e3b270fa0da74cb56b48e36ee1ff59258 100644 (file)
@@ -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
index 3305a77c2313ad025dcb011d6aaaac1bdcc56704..64b390e28501e12689b323da581c6bf39a53da84 100644 (file)
@@ -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
index 1765e93aa339dddcda45ee9cb9dd9df36e1f9ef5..002c1f804e15e2a5a06117861627521728bfc256 100644 (file)
@@ -758,6 +758,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2031,
 /**/
     2030,
 /**/