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:
@@ -1050,6 +1050,8 @@ func Test_EXINIT()
|
|||||||
[CODE]
|
[CODE]
|
||||||
call writefile(after, 'Xafter', 'D')
|
call writefile(after, 'Xafter', 'D')
|
||||||
let cmd = GetVimProg() . ' --not-a-term -S Xafter --cmd "set enc=utf8"'
|
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"')
|
call setenv('EXINIT', 'let exinit_found="yes"')
|
||||||
exe "silent !" . cmd
|
exe "silent !" . cmd
|
||||||
call assert_equal([], readfile('Xtestout'))
|
call assert_equal([], readfile('Xtestout'))
|
||||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1142,
|
||||||
/**/
|
/**/
|
||||||
1141,
|
1141,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user