summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_shortpathname.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-11-09 20:10:17 +0100
committerBram Moolenaar <Bram@vim.org>2019-11-09 20:10:17 +0100
commit3503d7c94a6c8c2a5ca1665d648d0cb81afcc863 (patch)
tree1084785735f6ed7f60ef12045d016977ae92c377 /src/testdir/test_shortpathname.vim
parentb73e439606b55d66d9e81da1f9cae729af37cf04 (diff)
patch 8.1.2278: using "cd" with "exe" may failv8.1.2278
Problem: Using "cd" with "exe" may fail. Solution: Use chdir() instead.
Diffstat (limited to 'src/testdir/test_shortpathname.vim')
-rw-r--r--src/testdir/test_shortpathname.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_shortpathname.vim b/src/testdir/test_shortpathname.vim
index 6b3f85f181..3c09b4c25d 100644
--- a/src/testdir/test_shortpathname.vim
+++ b/src/testdir/test_shortpathname.vim
@@ -51,7 +51,7 @@ func Test_ColonEight()
call TestIt(file2, ':p:8', resfile2)
call TestIt(nofile2, ':p:8', resnofile2)
call TestIt(nofile2, ':p:8:h', fnamemodify(resnofile2, ':h'))
- exe 'cd ' . dir1
+ call chdir(dir1)
call TestIt(file1, ':.:8', strpart(resfile1, strlen(resdir1)+1))
call TestIt(nofile1, ':.:8', strpart(resnofile1, strlen(resdir1)+1))
call TestIt(file2, ':.:8', strpart(resfile2, strlen(resdir1)+1))
@@ -68,7 +68,7 @@ func Test_ColonEight()
call delete(dir2, 'd')
call delete(dir1, 'd')
- exe "cd " . save_dir
+ call chdir(save_dir)
endfunc
func Test_ColonEight_MultiByte()