patch 9.1.1142: tests: test_startup fails if $HOME/$XDG_CONFIG_HOME is defined

Commit: 
https://github.com/vim/vim/commit/28155d08554b5b3a708e4628705034aa65c0903d
Author: Christian Brabandt <c...@256bit.org>
Date:   Sun Feb 23 19:55:09 2025 +0100

    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 <c...@256bit.org>

diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
index 78bbc7e6b..8052aa883 100644
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -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'))
diff --git a/src/version.c b/src/version.c
index df5cef169..2dfd4c83e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1142,
 /**/
     1141,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tmHCt-008oEk-Ti%40256bit.org.

Raspunde prin e-mail lui