Use mkdir() instead of !mkdir in test 73, it's more reliable.

This commit is contained in:
Bram Moolenaar
2010-08-13 19:13:18 +02:00
parent 673b87b577
commit daf3b39559
2 changed files with 9 additions and 10 deletions

View File

@ -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

View File

@ -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