Mercurial > vim
diff src/testdir/test73.in @ 9254:05e7d084c6c2 v7.4.1910
commit https://github.com/vim/vim/commit/abc70bbf363dbbe3f2bf714102f55648a512791e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 8 21:48:50 2016 +0200
patch 7.4.1910
Problem: Tests using external command to delete directory.
Solution: Use delete().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 08 Jun 2016 22:00:06 +0200 |
parents | 3887b02953ce |
children | ae45d497868f |
line wrap: on
line diff
--- a/src/testdir/test73.in +++ b/src/testdir/test73.in @@ -9,16 +9,9 @@ STARTTEST :set visualbell :set nocp viminfo+=nviminfo :" -:function! DeleteDirectory(dir) -: if has("win16") || has("win32") || has("win64") || has("dos16") || has("dos32") -: exec "silent !rmdir /Q /S " . a:dir -: else -: exec "silent !rm -rf " . a:dir -: endif -:endfun :" On windows a stale "Xfind" directory may exist, remove it so that :" we start from a clean state. -:call DeleteDirectory("Xfind") +:call delete("Xfind", "rf") :new :let cwd=getcwd() :let test_out = cwd . '/test.out' @@ -170,7 +163,7 @@ SVoyager 2:w :exec "w >>" . test_out :q :exec "cd " . cwd -:call DeleteDirectory("Xfind") +:call delete("Xfind", "rf") :qa! ENDTEST