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
3f173faf
Commit
3f173faf
authored
Jul 11, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Jul 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/tests: Add mkdir tests for trailing backslashes and invalid chars handling.
parent
9114dc5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+32
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+9
-0
No files found.
programs/cmd/tests/test_builtins.cmd
View file @
3f173faf
...
@@ -192,6 +192,38 @@ rmdir bar
...
@@ -192,6 +192,38 @@ rmdir bar
cd ..
cd ..
rmdir foo
rmdir foo
echo %ErrorLevel%
echo %ErrorLevel%
rem Trailing backslashes
mkdir foo\\\\
echo %ErrorLevel%
if exist foo (rmdir foo && echo dir created
) else ( echo dir not created )
echo %ErrorLevel%
rem Invalid chars
mkdir ?
echo %ErrorLevel%
call :setError 0
mkdir ?\foo
echo %ErrorLevel%
call :setError 0
mkdir foo\?
echo %ErrorLevel%
if exist foo (rmdir foo && echo ok, foo created
) else ( echo foo not created )
call :setError 0
mkdir foo\bar\?
echo %ErrorLevel%
call :setError 0
if not exist foo (
echo bad, foo not created
) else (
cd foo
if exist bar (
echo ok, foo\bar created
rmdir bar
)
cd ..
rmdir foo
)
echo -----------Testing Errorlevel-----------
echo -----------Testing Errorlevel-----------
rem nt 4.0 doesn't really support a way of setting errorlevel, so this is weak
rem nt 4.0 doesn't really support a way of setting errorlevel, so this is weak
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
3f173faf
...
@@ -115,6 +115,15 @@ del /q * succeeded on file2.dat
...
@@ -115,6 +115,15 @@ del /q * succeeded on file2.dat
@todo_wine@1
@todo_wine@1
0
0
0
0
0
dir created
0
@todo_wine@1
@todo_wine@1
@todo_wine@1
@todo_wine@ok, foo created
@todo_wine@1
@todo_wine@ok, foo\bar created
-----------Testing Errorlevel-----------
-----------Testing Errorlevel-----------
1
1
errorlevel just right, good
errorlevel just right, 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