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
3f173faf
Commit
3f173faf
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 mkdir tests for trailing backslashes and invalid chars handling.
parent
9114dc5c
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
+32
-0
32 additions, 0 deletions
programs/cmd/tests/test_builtins.cmd
programs/cmd/tests/test_builtins.cmd.exp
+9
-0
9 additions, 0 deletions
programs/cmd/tests/test_builtins.cmd.exp
with
41 additions
and
0 deletions
programs/cmd/tests/test_builtins.cmd
+
32
−
0
View file @
3f173faf
...
...
@@ -192,6 +192,38 @@ rmdir bar
cd
..
rmdir
foo
echo
%ErrorLevel%
rem Trailing backslashes
mkdir
foo
\\\\
echo
%ErrorLevel%
if
exist
foo
(
rmdir
foo
&&
echo
dir
created
)
else
(
echo
dir
not
created
)
echo
%ErrorLevel%
rem Invalid chars
mkdir
?
echo
%ErrorLevel%
call
:setError
0
mkdir
?
\foo
echo
%ErrorLevel%
call
:setError
0
mkdir
foo
\
?
echo
%ErrorLevel%
if
exist
foo
(
rmdir
foo
&&
echo
ok
,
foo
created
)
else
(
echo
foo
not
created
)
call
:setError
0
mkdir
foo
\bar\
?
echo
%ErrorLevel%
call
:setError
0
if
not
exist
foo
(
echo
bad
,
foo
not
created
)
else
(
cd
foo
if
exist
bar
(
echo
ok
,
foo
\bar
created
rmdir
bar
)
cd
..
rmdir
foo
)
echo
---------
--Testing
Errorlevel
-----------
rem nt 4.0 doesn't really support a way of setting errorlevel, so this is weak
...
...
This diff is collapsed.
Click to expand it.
programs/cmd/tests/test_builtins.cmd.exp
+
9
−
0
View file @
3f173faf
...
...
@@ -115,6 +115,15 @@ del /q * succeeded on file2.dat
@todo_wine@1
0
0
0
dir created
0
@todo_wine@1
@todo_wine@1
@todo_wine@1
@todo_wine@ok, foo created
@todo_wine@1
@todo_wine@ok, foo\bar created
-----------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