]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.3737: test fails without the 'autochdir' option v8.2.3737
authorDominique Pelle <dominique.pelle@gmail.com>
Sat, 4 Dec 2021 15:12:40 +0000 (15:12 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Dec 2021 15:12:40 +0000 (15:12 +0000)
Problem:    Test fails without the 'autochdir' option.
Solution:   Check that the option is available. (Dominique PellĂ©, closes #9272)

src/testdir/test_cd.vim
src/version.c

index 81ed491ea59f6be9614e472dcd7a5edf6719bab0..566e9f6ba673684bb0ea46b08805fa47113c1166 100644 (file)
@@ -226,6 +226,8 @@ func Test_cd_unknown_dir()
 endfunc
 
 func Test_getcwd_actual_dir()
+  CheckOption autochdir
+
   let startdir = getcwd()
   call mkdir('Xactual')
   call test_autochdir()
index 02743239f1756d587e767645d41d2a7230346525..f1d0e878c4533d6c7d1b232f64c8f7da4c5babbe 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3737,
 /**/
     3736,
 /**/