Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
11098:1afd2c838f52 | 11099:613d9bcd7a52 |
---|---|
69 call assert_equal(new_rtp, &rtp) | 69 call assert_equal(new_rtp, &rtp) |
70 endfunc | 70 endfunc |
71 | 71 |
72 func Test_packadd_symlink_dir() | 72 func Test_packadd_symlink_dir() |
73 if !has('unix') | 73 if !has('unix') |
74 return | 74 return |
75 endif | 75 endif |
76 let top2_dir = s:topdir . '/Xdir2' | 76 let top2_dir = s:topdir . '/Xdir2' |
77 let real_dir = s:topdir . '/Xsym' | 77 let real_dir = s:topdir . '/Xsym' |
78 exec "silent !ln -s" real_dir top2_dir | 78 call mkdir(real_dir, 'p') |
79 exec "silent !ln -s Xsym" top2_dir | |
79 let &rtp = top2_dir . ',' . top2_dir . '/after' | 80 let &rtp = top2_dir . ',' . top2_dir . '/after' |
80 let &packpath = &rtp | 81 let &packpath = &rtp |
81 | 82 |
82 let s:plugdir = top2_dir . '/pack/mine/opt/mytest' | 83 let s:plugdir = top2_dir . '/pack/mine/opt/mytest' |
83 call mkdir(s:plugdir . '/plugin', 'p') | 84 call mkdir(s:plugdir . '/plugin', 'p') |