summaryrefslogtreecommitdiff
path: root/src/testdir/test73.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-08 21:48:50 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-08 21:48:50 +0200
commitabc70bbf363dbbe3f2bf714102f55648a512791e (patch)
tree4b98e32da7a2f3f00f26ad92febd132f94840028 /src/testdir/test73.in
parent945ec093cd4ddefab930239990564b12eb232153 (diff)
downloadvim-git-abc70bbf363dbbe3f2bf714102f55648a512791e.tar.gz
patch 7.4.1910v7.4.1910
Problem: Tests using external command to delete directory. Solution: Use delete().
Diffstat (limited to 'src/testdir/test73.in')
-rw-r--r--src/testdir/test73.in11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/testdir/test73.in b/src/testdir/test73.in
index 666e4d2e5..a0b9ae8a1 100644
--- 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