Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7fb790f8
Commit
7fb790f8
authored
Jul 29, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add FOR /L tests.
parent
21f7c5db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+19
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+13
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
7fb790f8
...
@@ -317,6 +317,25 @@ rem sort < tmp
...
@@ -317,6 +317,25 @@ rem sort < tmp
rem del tmp
rem del tmp
cd ..
cd ..
rd /s/Q foobar
rd /s/Q foobar
echo ...for /L
rem Some cases loop forever writing 0s, like e.g. (1,0,1), (1,a,3) or (a,b,c); those can't be tested here
for /L %%i in (1,2,0) do echo %%i
for /L %%i in (1,2,6) do echo %%i
for /l %%i in (1 ,2,6) do echo %%i
for /L %%i in (a,2,3) do echo %%i
for /L %%i in (1,2,-1) do echo %%i
for /L %%i in (-4,-1,-1) do echo %%i
for /L %%i in (1,-2,-2) do echo %%i
for /L %%i in (1,2,a) do echo %%i
echo ErrorLevel %ErrorLevel%
for /L %%i in (1,a,b) do echo %%i
echo ErrorLevel %ErrorLevel%
rem FIXME: following test cases cannot be currently tested due to an inconsistent/buggy 'for /L' parsing.
rem for /L %%i in (a,2,b) do echo %%i
rem for /L %%i in (1,1,1) do echo %%i
rem for /L %%i in (1,-2,-1) do echo %%i
rem for /L %%i in (-1,-1,-1) do echo %%i
rem for /L %%i in (1,2, 3) do echo %%i
echo -----------Testing del /a-----------
echo -----------Testing del /a-----------
del /f/q *.test > nul
del /f/q *.test > nul
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
7fb790f8
...
@@ -220,6 +220,19 @@ bazbaz
...
@@ -220,6 +220,19 @@ bazbaz
baz
baz
foo
foo
bar
bar
...for /L
1
3
5
1
3
5
0
2
1
-1
@todo_wine@ErrorLevel 0
@todo_wine@ErrorLevel 0
-----------Testing del /a-----------
-----------Testing del /a-----------
not-r.test not found after delete, good
not-r.test not found after delete, good
r.test found before delete, good
r.test found before delete, good
...
...
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