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
5d22f3aa
Commit
5d22f3aa
authored
Jul 19, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add tests for NUL handling.
parent
5ae558ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+31
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+6
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
5d22f3aa
...
...
@@ -104,6 +104,37 @@ type foobaz
echo ***
del foobaz
echo ------------ Testing NUL ------------
md foobar && cd foobar
rem NUL file (non) creation + case insensitivity
rem Note: "if exist" does not work with NUL, so to check for file existence we use a kludgy workaround
echo > bar
echo foo > NUL
dir /b /a-d
echo foo > nul
dir /b /a-d
echo foo > NuL
dir /b /a-d
del bar
rem NUL not special everywhere
call :setError 123
echo NUL> foo
if not exist foo (echo foo should have been created) else (
type foo
del foo
)
rem Empty file creation
copy nul foo > nul
if exist foo (
echo foo created
del foo
type foo
) else (
echo ***
)
cd ..
rd foobar
echo ------------ Testing if/else --------------
echo if/else should work with blocks
if 0 == 0 (
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
5d22f3aa
...
...
@@ -99,6 +99,12 @@ bar
***
bar
***
------------ Testing NUL ------------
bar
bar
bar
NUL
@todo_wine@foo created
------------ Testing if/else --------------
if/else should work with blocks
if seems to work
...
...
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