diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-03 14:31:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-03 14:31:02 +0200 |
commit | 6a8691d483914606213a24356a9124fa41c93b69 (patch) | |
tree | 9c03577990e02c1401adbe4c6aefe057fedb447d /src/testdir/setup.vim | |
parent | 2254a8ad0cb596a0a0863b1af92353f018c0b355 (diff) |
patch 8.0.1045: running tests may pollute shell historyv8.0.1045
Problem: Running tests may pollute shell history. (Manuel Ortega)
Solution: Make $HISTFILE empty.
Diffstat (limited to 'src/testdir/setup.vim')
-rw-r--r-- | src/testdir/setup.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim index cb8bebb47a..fca5194abf 100644 --- a/src/testdir/setup.vim +++ b/src/testdir/setup.vim @@ -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' |