Skip to content

Commit 6a8691d

Browse files
committed
patch 8.0.1045: running tests may pollute shell history
Problem: Running tests may pollute shell history. (Manuel Ortega) Solution: Make $HISTFILE empty.
1 parent 2254a8a commit 6a8691d

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/testdir/setup.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ if 1
2121
let $XAUTHORITY = $HOME . '/.Xauthority'
2222
endif
2323

24+
" Avoid storing shell history.
25+
let $HISTFILE = ""
26+
2427
" Make sure $HOME does not get read or written.
2528
" It must exist, gnome tries to create $HOME/.gnome2
2629
let $HOME = getcwd() . '/XfakeHOME'

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1045,
772774
/**/
773775
1044,
774776
/**/

0 commit comments

Comments
 (0)