diff src/testdir/test_packadd.vim @ 11099:613d9bcd7a52 v8.0.0437

patch 8.0.0437: packadd test does not fully work commit https://github.com/vim/vim/commit/644df41c44cbdfacdedbba55ef77a6c6031eccd8 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 9 13:58:02 2017 +0100 patch 8.0.0437: packadd test does not fully work Problem: The packadd test does not create the symlink correctly and does not test the right thing. Solution: Create the directory and symlink correctly.
author Christian Brabandt <cb@256bit.org>
date Thu, 09 Mar 2017 14:00:06 +0100
parents ae45d497868f
children 1fad9675d8fd
line wrap: on
line diff
--- a/src/testdir/test_packadd.vim
+++ b/src/testdir/test_packadd.vim
@@ -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