Skip to content

Commit 28155d0

Browse files
committed
patch 9.1.1142: tests: test_startup fails if $HOME/$XDG_CONFIG_HOME is defined
Problem: tests: test_startup fails if $HOME/$XDG_CONFIG_HOME is defined Solution: define $HOME and $XDG_CONFIG_HOME to some non-existing directory Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 094494b commit 28155d0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/testdir/test_startup.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,8 @@ func Test_EXINIT()
10501050
[CODE]
10511051
call writefile(after, 'Xafter', 'D')
10521052
let cmd = GetVimProg() . ' --not-a-term -S Xafter --cmd "set enc=utf8"'
1053+
call setenv('HOME', '/non-existing')
1054+
call setenv('XDG_CONFIG_HOME', '/non-existing')
10531055
call setenv('EXINIT', 'let exinit_found="yes"')
10541056
exe "silent !" . cmd
10551057
call assert_equal([], readfile('Xtestout'))

src/version.c

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

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
1142,
707709
/**/
708710
1141,
709711
/**/

0 commit comments

Comments
 (0)