0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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>
This commit is contained in:
Christian Brabandt
2025-02-23 19:55:09 +01:00
parent 094494bf2e
commit 28155d0855
2 changed files with 4 additions and 0 deletions

View File

@@ -1050,6 +1050,8 @@ func Test_EXINIT()
[CODE]
call writefile(after, 'Xafter', 'D')
let cmd = GetVimProg() . ' --not-a-term -S Xafter --cmd "set enc=utf8"'
call setenv('HOME', '/non-existing')
call setenv('XDG_CONFIG_HOME', '/non-existing')
call setenv('EXINIT', 'let exinit_found="yes"')
exe "silent !" . cmd
call assert_equal([], readfile('Xtestout'))

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1142,
/**/
1141,
/**/