Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olivier F. R. Dierick
wine
Commits
b37d39e3
Commit
b37d39e3
authored
13 years ago
by
Frédéric Delanoy
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
cmd/tests: Add basic rmdir tests.
parent
3f173faf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
programs/cmd/tests/test_builtins.cmd
+33
-0
33 additions, 0 deletions
programs/cmd/tests/test_builtins.cmd
programs/cmd/tests/test_builtins.cmd.exp
+12
-0
12 additions, 0 deletions
programs/cmd/tests/test_builtins.cmd.exp
with
45 additions
and
0 deletions
programs/cmd/tests/test_builtins.cmd
+
33
−
0
View file @
b37d39e3
...
...
@@ -225,6 +225,39 @@ if not exist foo (
rmdir
foo
)
echo
-----------
Testing
rmdir
-----------
call
:setError
0
rem rd and rmdir are synonymous
mkdir
foobar
rmdir
foobar
echo
%ErrorLevel%
if
not
exist
foobar
echo
dir
removed
mkdir
foobar
rd
foobar
echo
%ErrorLevel%
if
not
exist
foobar
echo
dir
removed
rem Removing non-existent directory
rmdir
foobar
echo
%ErrorLevel%
rem Removing single-level directories
echo
>
foo
rmdir
foo
echo
%ErrorLevel%
if
exist
foo
echo
file
not
removed
del
foo
mkdir
foo
echo
>
foo
\bar
rmdir
foo
echo
%ErrorLevel%
if
exist
foo
echo
non
-empty
dir
not
removed
del
foo
\bar
mkdir
foo
\bar
rmdir
foo
echo
%ErrorLevel%
if
exist
foo
echo
non
-empty
dir
not
removed
rmdir
foo
\bar
rmdir
foo
echo
---------
--Testing
Errorlevel
-----------
rem nt 4.0 doesn't really support a way of setting errorlevel, so this is weak
rem See http://www.robvanderwoude.com/exit.php
...
...
This diff is collapsed.
Click to expand it.
programs/cmd/tests/test_builtins.cmd.exp
+
12
−
0
View file @
b37d39e3
...
...
@@ -124,6 +124,18 @@ dir created
@todo_wine@ok, foo created
@todo_wine@1
@todo_wine@ok, foo\bar created
----------- Testing rmdir -----------
0
dir removed
0
dir removed
0
0
file not removed
0
non-empty dir not removed
0
non-empty dir not removed
-----------Testing Errorlevel-----------
1
errorlevel just right, good
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment