]> granicus.if.org Git - vim/commitdiff
patch 8.0.1045: running tests may pollute shell history v8.0.1045
authorBram Moolenaar <Bram@vim.org>
Sun, 3 Sep 2017 12:31:02 +0000 (14:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 3 Sep 2017 12:31:02 +0000 (14:31 +0200)
Problem:    Running tests may pollute shell history. (Manuel Ortega)
Solution:   Make $HISTFILE empty.

src/testdir/setup.vim
src/version.c

index cb8bebb47a273deba681625acb61cc3c445d9a30..fca5194abfe5dfa88b6ee2034dfe5a98b7cf9625 100644 (file)
@@ -21,6 +21,9 @@ if 1
     let $XAUTHORITY = $HOME . '/.Xauthority'
   endif
 
+  " Avoid storing shell history.
+  let $HISTFILE = ""
+
   " Make sure $HOME does not get read or written.
   " It must exist, gnome tries to create $HOME/.gnome2
   let $HOME = getcwd() . '/XfakeHOME'
index 0d2ca4f47ff68ba55eb58aed0305c28b9bf31932..b1e2d5a7a3bf5ceee9602586845adf4988fc85f3 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1045,
 /**/
     1044,
 /**/