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
b632f096
Commit
b632f096
authored
Apr 18, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Count precise amount of child process failures.
parent
3de89e85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
loader.c
dlls/kernel32/tests/loader.c
+25
-5
test.h
include/wine/test.h
+7
-0
No files found.
dlls/kernel32/tests/loader.c
View file @
b632f096
...
...
@@ -1615,7 +1615,11 @@ static void test_ExitProcess(void)
ok
(
ret
==
WAIT_OBJECT_0
,
"child process failed to terminate
\n
"
);
GetExitCodeProcess
(
pi
.
hProcess
,
&
ret
);
ok
(
ret
==
195
,
"expected exit code 195, got %u
\n
"
,
ret
);
ok
(
!*
child_failures
,
"%u failures in child process
\n
"
,
*
child_failures
);
if
(
*
child_failures
)
{
trace
(
"%d failures in child process
\n
"
,
*
child_failures
);
winetest_add_failures
(
*
child_failures
);
}
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hProcess
);
...
...
@@ -1628,7 +1632,11 @@ static void test_ExitProcess(void)
ok
(
ret
==
WAIT_OBJECT_0
,
"child process failed to terminate
\n
"
);
GetExitCodeProcess
(
pi
.
hProcess
,
&
ret
);
ok
(
ret
==
195
,
"expected exit code 195, got %u
\n
"
,
ret
);
ok
(
!*
child_failures
,
"%u failures in child process
\n
"
,
*
child_failures
);
if
(
*
child_failures
)
{
trace
(
"%d failures in child process
\n
"
,
*
child_failures
);
winetest_add_failures
(
*
child_failures
);
}
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hProcess
);
...
...
@@ -1641,7 +1649,11 @@ static void test_ExitProcess(void)
ok
(
ret
==
WAIT_OBJECT_0
,
"child process failed to terminate
\n
"
);
GetExitCodeProcess
(
pi
.
hProcess
,
&
ret
);
ok
(
ret
==
197
,
"expected exit code 197, got %u
\n
"
,
ret
);
ok
(
!*
child_failures
,
"%u failures in child process
\n
"
,
*
child_failures
);
if
(
*
child_failures
)
{
trace
(
"%d failures in child process
\n
"
,
*
child_failures
);
winetest_add_failures
(
*
child_failures
);
}
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hProcess
);
...
...
@@ -1654,7 +1666,11 @@ static void test_ExitProcess(void)
ok
(
ret
==
WAIT_OBJECT_0
,
"child process failed to terminate
\n
"
);
GetExitCodeProcess
(
pi
.
hProcess
,
&
ret
);
ok
(
ret
==
195
,
"expected exit code 195, got %u
\n
"
,
ret
);
ok
(
!*
child_failures
,
"%u failures in child process
\n
"
,
*
child_failures
);
if
(
*
child_failures
)
{
trace
(
"%d failures in child process
\n
"
,
*
child_failures
);
winetest_add_failures
(
*
child_failures
);
}
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hProcess
);
...
...
@@ -1668,7 +1684,11 @@ static void test_ExitProcess(void)
GetExitCodeProcess
(
pi
.
hProcess
,
&
ret
);
todo_wine
ok
(
ret
==
0
||
broken
(
ret
==
195
)
/* before win7 */
,
"expected exit code 0, got %u
\n
"
,
ret
);
ok
(
!*
child_failures
,
"%u failures in child process
\n
"
,
*
child_failures
);
if
(
*
child_failures
)
{
trace
(
"%d failures in child process
\n
"
,
*
child_failures
);
winetest_add_failures
(
*
child_failures
);
}
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
pi
.
hProcess
);
...
...
include/wine/test.h
View file @
b632f096
...
...
@@ -61,6 +61,7 @@ extern int winetest_loop_todo(void);
extern
void
winetest_end_todo
(
const
char
*
platform
);
extern
int
winetest_get_mainargs
(
char
***
pargv
);
extern
LONG
winetest_get_failures
(
void
);
extern
void
winetest_add_failures
(
LONG
new_failures
);
extern
void
winetest_wait_child_process
(
HANDLE
process
);
extern
const
char
*
wine_dbgstr_wn
(
const
WCHAR
*
str
,
int
n
);
...
...
@@ -434,6 +435,12 @@ LONG winetest_get_failures(void)
return
failures
;
}
void
winetest_add_failures
(
LONG
new_failures
)
{
while
(
new_failures
--
>
0
)
InterlockedIncrement
(
&
failures
);
}
void
winetest_wait_child_process
(
HANDLE
process
)
{
DWORD
exit_code
=
1
;
...
...
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