From: Christian Brabandt Date: Wed, 16 Apr 2025 18:25:47 +0000 (+0200) Subject: patch 9.1.1312: tests: Test_backupskip() fails when HOME is defined X-Git-Tag: v9.1.1312^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad503fe92772cb37d6f8601f48ff2bdb34cdbe96;p=thirdparty%2Fvim.git patch 9.1.1312: tests: Test_backupskip() fails when HOME is defined Problem: tests: Test_backupskip() fails when HOME is defined Solution: unset $HOME temporarily Signed-off-by: Christian Brabandt --- diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index d8ad3f210b..9708fcc051 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -1168,11 +1168,14 @@ func Test_backupskip() call setenv(var, '/duplicate/path') endfor + " unset $HOME, so that it won't try to read init files + let saveenv['HOME'] = getenv("HOME") + call setenv('HOME', v:null) exe 'silent !' . cmd call assert_equal(['errors:'], readfile('Xtestout')) " restore environment variables - for var in ['TMPDIR', 'TMP', 'TEMP'] + for var in ['TMPDIR', 'TMP', 'TEMP', 'HOME'] call setenv(var, saveenv[var]) endfor diff --git a/src/version.c b/src/version.c index 7aae2b5082..2a51b4207a 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 */ +/**/ + 1312, /**/ 1311, /**/