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
d029a334
Commit
d029a334
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: Segment CALL tests for an easier read.
parent
6e506eae
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
+5
-4
5 additions, 4 deletions
programs/cmd/tests/test_builtins.cmd
programs/cmd/tests/test_builtins.cmd.exp
+4
-1
4 additions, 1 deletion
programs/cmd/tests/test_builtins.cmd.exp
with
9 additions
and
5 deletions
programs/cmd/tests/test_builtins.cmd
+
5
−
4
View file @
d029a334
...
@@ -1196,9 +1196,9 @@ set FOO=
...
@@ -1196,9 +1196,9 @@ set FOO=
endlocal
endlocal
cd
..
&
rd
/s/q
foobar
cd
..
&
rd
/s/q
foobar
echo
------------
Testing
CALL
------------
--
echo
------------
Testing
CALL
------------
mkdir
foobar
&
cd
foobar
mkdir
foobar
&
cd
foobar
rem E
xternal script
echo
...
e
xternal
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
...
@@ -1210,7 +1210,8 @@ call foo.cmd "" bar
...
@@ -1210,7 +1210,8 @@ call foo.cmd "" bar
call
foo
.cmd
foo
''
call
foo
.cmd
foo
''
call
foo
.cmd
''
bar
call
foo
.cmd
''
bar
del
foo
.cmd
del
foo
.cmd
rem Internal routines
echo
...
internal
routines
...
call
:testRoutine
:testRoutine
call
:testRoutine
:testRoutine
goto
:endTestRoutine
goto
:endTestRoutine
:testRoutine
:testRoutine
...
@@ -1230,7 +1231,7 @@ echo %1 %2
...
@@ -1230,7 +1231,7 @@ echo %1 %2
goto
:eof
goto
:eof
:endTestRoutineArgs
:endTestRoutineArgs
rem Should work for
builtins...
echo
...
with
builtins
...
call
mkdir
foo
call
mkdir
foo
echo
%ErrorLevel%
echo
%ErrorLevel%
if
exist
foo
(
echo
foo
created
)
else
echo
foo
should
exist
!
if
exist
foo
(
echo
foo
created
)
else
echo
foo
should
exist
!
...
...
This diff is collapsed.
Click to expand it.
programs/cmd/tests/test_builtins.cmd.exp
+
4
−
1
View file @
d029a334
...
@@ -696,7 +696,8 @@ footype=foo_opencmd
...
@@ -696,7 +696,8 @@ footype=foo_opencmd
footype=foo_opencmd
footype=foo_opencmd
...resetting association
...resetting association
@todo_wine@original value@or_broken@buggyXP@or_broken@!FOO!
@todo_wine@original value@or_broken@buggyXP@or_broken@!FOO!
------------ Testing CALL --------------
------------ Testing CALL ------------
... external script ...
foo@space@
foo@space@
foo 8
foo 8
foo@space@@space@
foo@space@@space@
...
@@ -705,6 +706,7 @@ foo bar@space@
...
@@ -705,6 +706,7 @@ foo bar@space@
@todo_wine@"" bar@space@
@todo_wine@"" bar@space@
foo ''@space@
foo ''@space@
'' bar@space@
'' bar@space@
... internal routines ...
bar :testRoutine
bar :testRoutine
foo@space@
foo@space@
foo bar
foo bar
...
@@ -712,6 +714,7 @@ foo bar
...
@@ -712,6 +714,7 @@ foo bar
@todo_wine@"" bar
@todo_wine@"" bar
foo ''
foo ''
'' bar
'' bar
... with builtins ...
@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