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
3cd864bd
Commit
3cd864bd
authored
Aug 02, 2011
by
Dan Kegel
Committed by
Alexandre Julliard
Aug 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: mkdir: Set errorlevel on invalid argument.
parent
15ce9a57
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
builtins.c
programs/cmd/builtins.c
+1
-0
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+4
-4
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+4
-4
No files found.
programs/cmd/builtins.c
View file @
3cd864bd
...
@@ -537,6 +537,7 @@ void WCMD_create_dir (WCHAR *command) {
...
@@ -537,6 +537,7 @@ void WCMD_create_dir (WCHAR *command) {
if
(
!
argN
)
break
;
if
(
!
argN
)
break
;
if
(
!
create_full_path
(
thisArg
))
{
if
(
!
create_full_path
(
thisArg
))
{
WCMD_print_error
();
WCMD_print_error
();
errorlevel
=
1
;
}
}
}
}
}
}
...
...
programs/cmd/tests/test_builtins.cmd
View file @
3cd864bd
...
@@ -485,18 +485,18 @@ if exist foo (rmdir foo & echo dir created
...
@@ -485,18 +485,18 @@ if exist foo (rmdir foo & echo dir created
echo %ErrorLevel%
echo %ErrorLevel%
rem Invalid chars
rem Invalid chars
mkdir ?
mkdir ?
echo %ErrorLevel%
echo
mkdir ? gives errorlevel
%ErrorLevel%
call :setError 0
call :setError 0
mkdir ?\foo
mkdir ?\foo
echo %ErrorLevel%
echo
mkdir ?\foo gives errorlevel
%ErrorLevel%
call :setError 0
call :setError 0
mkdir foo\?
mkdir foo\?
echo %ErrorLevel%
echo
mkdir foo\? gives errorlevel
%ErrorLevel%
if exist foo (rmdir foo & echo ok, foo created
if exist foo (rmdir foo & echo ok, foo created
) else ( echo foo not created )
) else ( echo foo not created )
call :setError 0
call :setError 0
mkdir foo\bar\?
mkdir foo\bar\?
echo %ErrorLevel%
echo
mkdir foo\bar\? gives errorlevel
%ErrorLevel%
call :setError 0
call :setError 0
if not exist foo (
if not exist foo (
echo bad, foo not created
echo bad, foo not created
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
3cd864bd
...
@@ -277,11 +277,11 @@ del /q * succeeded on file2.dat
...
@@ -277,11 +277,11 @@ del /q * succeeded on file2.dat
0
0
dir created
dir created
0
0
@todo_wine@
1
mkdir ? gives errorlevel
1
@todo_wine@
1
mkdir ?\foo gives errorlevel
1
@todo_wine@
1
mkdir foo\? gives errorlevel
1
@todo_wine@ok, foo created
@todo_wine@ok, foo created
@todo_wine@
1
mkdir foo\bar\? gives errorlevel
1
@todo_wine@ok, foo\bar created
@todo_wine@ok, foo\bar created
foo created
foo created
bar created
bar created
...
...
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