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
ce57ebe3
Commit
ce57ebe3
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: Additional CALL tests.
parent
7fb790f8
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
+20
-0
20 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
32 additions
and
0 deletions
programs/cmd/tests/test_builtins.cmd
+
20
−
0
View file @
ce57ebe3
...
@@ -542,6 +542,13 @@ rem External script
...
@@ -542,6 +542,13 @@ rem External script
echo
echo
foo
%%
1
>
foo
.cmd
echo
echo
foo
%%
1
>
foo
.cmd
call
foo
call
foo
call
foo
.cmd
8
call
foo
.cmd
8
echo
echo
%%
1
%%
2
>
foo
.cmd
call
foo
.cmd
foo
call
foo
.cmd
foo
bar
call
foo
.cmd
foo
""
call
foo
.cmd
""
bar
call
foo
.cmd
foo
''
call
foo
.cmd
''
bar
del
foo
.cmd
del
foo
.cmd
rem Internal routines
rem Internal routines
call
:testRoutine
:testRoutine
call
:testRoutine
:testRoutine
...
@@ -550,6 +557,19 @@ goto :endTestRoutine
...
@@ -550,6 +557,19 @@ goto :endTestRoutine
echo
bar
%
1
echo
bar
%
1
goto
:eof
goto
:eof
:endTestRoutine
:endTestRoutine
call
:testRoutineArgs
foo
call
:testRoutineArgs
foo
bar
call
:testRoutineArgs
foo
""
call
:testRoutineArgs
""
bar
call
:testRoutineArgs
foo
''
call
:testRoutineArgs
''
bar
goto
:endTestRoutineArgs
:testRoutineArgs
echo
%
1
%
2
goto
:eof
:endTestRoutineArgs
rem Should work for builtins...
rem Should work for builtins...
call
mkdir
foo
call
mkdir
foo
echo
%ErrorLevel%
echo
%ErrorLevel%
...
...
This diff is collapsed.
Click to expand it.
programs/cmd/tests/test_builtins.cmd.exp
+
12
−
0
View file @
ce57ebe3
...
@@ -288,7 +288,19 @@ bar\baz removed
...
@@ -288,7 +288,19 @@ bar\baz removed
------------ Testing CALL --------------
------------ Testing CALL --------------
foo@space@
foo@space@
@todo_wine@foo 8
@todo_wine@foo 8
foo@space@@space@
foo bar@space@
@todo_wine@foo ""@space@
@todo_wine@"" bar@space@
foo ''@space@
'' bar@space@
bar :testRoutine
bar :testRoutine
foo@space@
foo bar
@todo_wine@foo ""
@todo_wine@"" bar
foo ''
'' bar
@todo_wine@0
@todo_wine@0
@todo_wine@foo created
@todo_wine@foo created
@todo_wine@Should expand foobaz
@todo_wine@Should expand foobaz
...
...
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