]> granicus.if.org Git - vim/commitdiff
patch 8.0.0437: packadd test does not fully work v8.0.0437
authorBram Moolenaar <Bram@vim.org>
Thu, 9 Mar 2017 12:58:02 +0000 (13:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 Mar 2017 12:58:02 +0000 (13:58 +0100)
Problem:    The packadd test does not create the symlink correctly and does
            not test the right thing.
Solution:   Create the directory and symlink correctly.

src/testdir/test_packadd.vim
src/version.c

index 9d4c6d8fe1a3fe4e358ee0d2dd32ba2d5682fd40..7dcaa60622976830591b9f1fc521069f74637ec9 100644 (file)
@@ -71,11 +71,12 @@ endfunc
 
 func Test_packadd_symlink_dir()
   if !has('unix')
-         return
+    return
   endif
   let top2_dir = s:topdir . '/Xdir2'
   let real_dir = s:topdir . '/Xsym'
-  exec "silent !ln -s" real_dir top2_dir
+  call mkdir(real_dir, 'p')
+  exec "silent !ln -s Xsym"  top2_dir
   let &rtp = top2_dir . ',' . top2_dir . '/after'
   let &packpath = &rtp
 
index 870b66b46e5aa2fdb41d6bf15b5b71d5915505bc..413c2c1de54df8786957ccb5c67d5d074c1f70ab 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    437,
 /**/
     436,
 /**/