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
27de76e3
Commit
27de76e3
authored
Jul 09, 2018
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Test child process exit code.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08d98f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
misc.c
dlls/ucrtbase/tests/misc.c
+7
-2
No files found.
dlls/ucrtbase/tests/misc.c
View file @
27de76e3
...
...
@@ -782,7 +782,12 @@ static void test_exit(const char *argv0)
sprintf
(
path
,
"%s misc exit"
,
argv0
);
startup
.
cb
=
sizeof
(
startup
);
CreateProcessA
(
NULL
,
path
,
NULL
,
NULL
,
TRUE
,
0
,
NULL
,
NULL
,
&
startup
,
&
proc
);
winetest_wait_child_process
(
proc
.
hProcess
);
ret
=
WaitForSingleObject
(
proc
.
hProcess
,
INFINITE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"child process wait failed
\n
"
);
GetExitCodeProcess
(
proc
.
hProcess
,
&
ret
);
ok
(
ret
==
1
,
"child process exited with code %d
\n
"
,
ret
);
CloseHandle
(
proc
.
hProcess
);
CloseHandle
(
proc
.
hThread
);
ret
=
WaitForSingleObject
(
exit_event
,
0
);
ok
(
ret
==
WAIT_OBJECT_0
,
"exit_event was not set (%x)
\n
"
,
ret
);
...
...
@@ -812,7 +817,7 @@ static void test_call_exit(void)
{
ok
(
!
p__crt_atexit
(
at_exit_func1
),
"_crt_atexit failed
\n
"
);
ok
(
!
p__crt_atexit
(
at_exit_func2
),
"_crt_atexit failed
\n
"
);
p_exit
(
0
);
p_exit
(
1
);
}
START_TEST
(
misc
)
...
...
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