Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
195ee2f3
Commit
195ee2f3
authored
Sep 11, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add tests for combined CALLs/GOTOs.
parent
a33bad1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
1 deletion
+56
-1
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+47
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+9
-1
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
195ee2f3
...
@@ -1353,6 +1353,53 @@ if d==d goto dest4
...
@@ -1353,6 +1353,53 @@ if d==d goto dest4
:dest4@space@
:dest4@space@
echo goto with a following space worked
echo goto with a following space worked
echo ---------- Testing combined CALLs/GOTOs -----------
echo @echo off>foo.cmd
echo goto :eof>>foot.cmd
echo :eof>>foot.cmd
echo echo world>>foo.cmd
echo @echo off>foot.cmd
echo echo cheball>>foot.cmd
echo.>>foot.cmd
echo call :bar>>foot.cmd
echo if "%%1"=="deleteMe" (del foot.cmd)>>foot.cmd
echo goto :eof>>foot.cmd
echo.>>foot.cmd
echo :bar>>foot.cmd
echo echo barbare>>foot.cmd
echo goto :eof>>foot.cmd
call foo.cmd
call foot
call :bar
del foo.cmd
rem Script execution stops after the following line
foot deleteMe
call :foo
call :foot
goto :endFuns
:foot
echo foot
:foo
echo foo
goto :eof
:endFuns
:bar
echo bar
call :foo
:baz
echo baz
goto :eof
echo Final message is not output since earlier 'foot' processing stops script execution
echo Do NOT add any tests below this line
echo -----------Done, jumping to EOF-----------
echo -----------Done, jumping to EOF-----------
goto :eof
goto :eof
rem Subroutine to set errorlevel and return
rem Subroutine to set errorlevel and return
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
195ee2f3
...
@@ -757,4 +757,12 @@ goto with no leading space worked
...
@@ -757,4 +757,12 @@ goto with no leading space worked
goto with a leading space worked
goto with a leading space worked
goto with a leading tab worked
goto with a leading tab worked
goto with a following space worked
goto with a following space worked
-----------Done, jumping to EOF-----------
---------- Testing combined CALLs/GOTOs -----------
world
cheball
barbare
bar
foo
baz
cheball
barbare
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment