]> granicus.if.org Git - vim/commitdiff
patch 8.0.1463: test fails without 'autochdir' option v8.0.1463
authorBram Moolenaar <Bram@vim.org>
Sat, 3 Feb 2018 19:11:40 +0000 (20:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 3 Feb 2018 19:11:40 +0000 (20:11 +0100)
Problem:    Test fails without 'autochdir' option.
Solution:   Skip test if 'autochdir' is not supported.

src/testdir/test_autocmd.vim
src/version.c

index c504f704fc72ba1d696f4626faa0b78d8ce04ab9..065ac4e29d0d1cd41ddccd4dd9f8c5d1a636fb34 100644 (file)
@@ -1232,6 +1232,9 @@ function Test_dirchanged_local()
 endfunc
 
 function Test_dirchanged_auto()
+  if !exists('+autochdir')
+    return
+  endif
   call s:Before_test_dirchanged()
   call test_autochdir()
   autocmd test_dirchanged DirChanged auto call add(s:li, "auto:")
index 5b4c2d209948adcc7d0b27c5f2ffa4cdf187a0e5..af192797f7255f83809ca968b75ad8f2f6436b11 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1463,
 /**/
     1462,
 /**/