]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1142: tests: test_startup fails if $HOME/$XDG_CONFIG_HOME is defined v9.1.1142
authorChristian Brabandt <cb@256bit.org>
Sun, 23 Feb 2025 18:55:09 +0000 (19:55 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 23 Feb 2025 18:55:09 +0000 (19:55 +0100)
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>
src/testdir/test_startup.vim
src/version.c

index 78bbc7e6bb883c36734c18808f1581a0da9b04b5..8052aa883df3a5201970a062599d13a0351665da 100644 (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'))
index df5cef169f7127f56458d6b996a13674ca232832..2dfd4c83ec8e79dad59b6d84a7ac26924d6e310d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1142,
 /**/
     1141,
 /**/