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
1d8ee100
Commit
1d8ee100
authored
Feb 24, 2020
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/test: Simplify a couple of calls to 'process exit'.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
995b44fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
process.c
dlls/kernel32/tests/process.c
+2
-8
No files found.
dlls/kernel32/tests/process.c
View file @
1d8ee100
...
...
@@ -2831,9 +2831,7 @@ static HANDLE test_AddSelfToJob(void)
static
void
test_jobInheritance
(
HANDLE
job
)
{
char
buffer
[
MAX_PATH
+
23
];
PROCESS_INFORMATION
pi
;
STARTUPINFOA
si
=
{
0
};
DWORD
dwret
;
BOOL
ret
,
out
;
...
...
@@ -2843,10 +2841,7 @@ static void test_jobInheritance(HANDLE job)
return
;
}
sprintf
(
buffer
,
"
\"
%s
\"
process %s"
,
selfname
,
"exit"
);
ret
=
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
ret
,
"CreateProcessA error %u
\n
"
,
GetLastError
());
create_process
(
"exit"
,
&
pi
);
out
=
FALSE
;
ret
=
pIsProcessInJob
(
pi
.
hProcess
,
job
,
&
out
);
...
...
@@ -2875,8 +2870,7 @@ static void test_BreakawayOk(HANDLE job)
return
;
}
sprintf
(
buffer
,
"
\"
%s
\"
process %s"
,
selfname
,
"exit"
);
sprintf
(
buffer
,
"
\"
%s
\"
process exit"
,
selfname
);
ret
=
CreateProcessA
(
NULL
,
buffer
,
NULL
,
NULL
,
FALSE
,
CREATE_BREAKAWAY_FROM_JOB
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
!
ret
,
"CreateProcessA expected failure
\n
"
);
expect_eq_d
(
ERROR_ACCESS_DENIED
,
GetLastError
());
...
...
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