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
96bc4517
Commit
96bc4517
authored
Dec 14, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Be a bit more verbose on failure.
parent
fadc820f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
process.c
dlls/kernel32/tests/process.c
+10
-3
No files found.
dlls/kernel32/tests/process.c
View file @
96bc4517
...
...
@@ -710,6 +710,7 @@ static void test_CommandLine(void)
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
;
DWORD
len
;
BOOL
ret
;
memset
(
&
startup
,
0
,
sizeof
(
startup
));
startup
.
cb
=
sizeof
(
startup
);
...
...
@@ -758,7 +759,9 @@ static void test_CommandLine(void)
/* Test for Bug1330 to show that XP doesn't change '/' to '\\' in argv[0]*/
get_file_name
(
resfile
);
sprintf
(
buffer
,
"./%s tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
selfname
,
resfile
);
ok
(
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
),
"CreateProcess
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
ok
(
ret
,
"CreateProcess (%s) failed : %d
\n
"
,
buffer
,
GetLastError
());
/* wait for child to terminate */
ok
(
WaitForSingleObject
(
info
.
hProcess
,
30000
)
==
WAIT_OBJECT_0
,
"Child process termination
\n
"
);
/* child process has changed result file, so let profile functions know about it */
...
...
@@ -770,7 +773,9 @@ static void test_CommandLine(void)
get_file_name
(
resfile
);
sprintf
(
buffer
,
".
\\
%s tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
selfname
,
resfile
);
ok
(
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
),
"CreateProcess
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
ok
(
ret
,
"CreateProcess (%s) failed : %d
\n
"
,
buffer
,
GetLastError
());
/* wait for child to terminate */
ok
(
WaitForSingleObject
(
info
.
hProcess
,
30000
)
==
WAIT_OBJECT_0
,
"Child process termination
\n
"
);
/* child process has changed result file, so let profile functions know about it */
...
...
@@ -787,7 +792,9 @@ static void test_CommandLine(void)
p
=
strrchr
(
fullpath
,
'\\'
);
assert
(
p
);
sprintf
(
buffer
,
"..%s/%s tests/process.c %s
\"
a
\\\"
b
\\\\\"
c
\\\"
d"
,
p
,
selfname
,
resfile
);
ok
(
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
),
"CreateProcess
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0L
,
NULL
,
NULL
,
&
startup
,
&
info
);
ok
(
ret
,
"CreateProcess (%s) failed : %d
\n
"
,
buffer
,
GetLastError
());
/* wait for child to terminate */
ok
(
WaitForSingleObject
(
info
.
hProcess
,
30000
)
==
WAIT_OBJECT_0
,
"Child process termination
\n
"
);
/* child process has changed result file, so let profile functions know about it */
...
...
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