patch 8.0.1045: running tests may pollute shell history
Problem: Running tests may pollute shell history. (Manuel Ortega)
Solution: Make $HISTFILE empty.
diff --git a/src/testdir/setup.vim b/src/testdir/setup.vim
index cb8bebb..fca5194 100644
--- a/src/testdir/setup.vim
+++ b/src/testdir/setup.vim
@@ -21,6 +21,9 @@
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'