changeset 2558:3908363237a9 vim73

Use mkdir() instead of !mkdir in test 73, it's more reliable.
author Bram Moolenaar <bram@vim.org>
date Fri, 13 Aug 2010 19:13:18 +0200
parents 029ace8dff7d
children 7850c8c12347
files src/testdir/Make_dos.mak src/testdir/test73.in
diffstat 2 files changed, 9 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/Make_dos.mak
+++ b/src/testdir/Make_dos.mak
@@ -59,8 +59,6 @@ clean:
 	-if exist mbyte.vim del mbyte.vim
 	-if exist mzscheme.vim del mzscheme.vim
 	-del X*
-	-del X*.*
-	-if exists Xfind rmdir /S /Q Xfind
 	-if exist viminfo del viminfo
 
 .in.out:
@@ -72,4 +70,5 @@ clean:
 	-del X*
 	-del X*.*
 	-del test.ok
+	-rmdir /s /q Xfind
 	-if exist viminfo del viminfo
--- a/src/testdir/test73.in
+++ b/src/testdir/test73.in
@@ -22,7 +22,7 @@ STARTTEST
 :new
 :let cwd=getcwd()
 :let test_out = cwd . '/test.out'
-:silent !mkdir Xfind
+:call mkdir('Xfind')
 :cd Xfind
 :set path=
 :find 	
@@ -45,9 +45,9 @@ STARTTEST
 :close
 :new
 :" We shouldn't find any file at this point, test.out must be empty.
-:silent !mkdir in
+:call mkdir('in')
 :cd in
-:silent !mkdir path
+:call mkdir('path')
 :exec "cd " . cwd
 :e Xfind/file.txt
 SHoly Grail:w
@@ -103,15 +103,15 @@ SE.T.:w
 :"
 :"    x/bar/voyager.txt
 :"    y/bar/voyager.txt
-:silent !mkdir foo
+:call mkdir('foo')
 :cd foo
-:silent !mkdir x
-:silent !mkdir y
+:call mkdir('x')
+:call mkdir('y')
 :cd x
-:silent !mkdir bar
+:call mkdir('bar')
 :cd ..
 :cd y
-:silent !mkdir bar
+:call mkdir('bar')
 :cd ..
 :cd ..
 :" We should now be in the Xfind directory