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
e30a6bbc
Commit
e30a6bbc
authored
Apr 01, 2015
by
Andrew Cook
Committed by
Alexandre Julliard
Apr 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Extend IsProcessInJob tests.
parent
8fcfa67a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
process.c
dlls/kernel32/tests/process.c
+26
-1
No files found.
dlls/kernel32/tests/process.c
View file @
e30a6bbc
...
...
@@ -2168,7 +2168,7 @@ static void _create_process(int line, const char *command, LPPROCESS_INFORMATION
static
void
test_IsProcessInJob
(
void
)
{
HANDLE
job
;
HANDLE
job
,
job2
;
PROCESS_INFORMATION
pi
;
BOOL
ret
,
out
;
DWORD
dwret
;
...
...
@@ -2182,6 +2182,9 @@ static void test_IsProcessInJob(void)
job
=
pCreateJobObjectW
(
NULL
,
NULL
);
ok
(
job
!=
NULL
,
"CreateJobObject error %u
\n
"
,
GetLastError
());
job2
=
pCreateJobObjectW
(
NULL
,
NULL
);
ok
(
job2
!=
NULL
,
"CreateJobObject error %u
\n
"
,
GetLastError
());
create_process
(
"wait"
,
&
pi
);
out
=
TRUE
;
...
...
@@ -2189,6 +2192,16 @@ static void test_IsProcessInJob(void)
ok
(
ret
,
"IsProcessInJob error %u
\n
"
,
GetLastError
());
ok
(
!
out
,
"IsProcessInJob returned out=%u
\n
"
,
out
);
out
=
TRUE
;
ret
=
pIsProcessInJob
(
pi
.
hProcess
,
job2
,
&
out
);
ok
(
ret
,
"IsProcessInJob error %u
\n
"
,
GetLastError
());
ok
(
!
out
,
"IsProcessInJob returned out=%u
\n
"
,
out
);
out
=
TRUE
;
ret
=
pIsProcessInJob
(
pi
.
hProcess
,
NULL
,
&
out
);
ok
(
ret
,
"IsProcessInJob error %u
\n
"
,
GetLastError
());
ok
(
!
out
,
"IsProcessInJob returned out=%u
\n
"
,
out
);
ret
=
pAssignProcessToJobObject
(
job
,
pi
.
hProcess
);
ok
(
ret
,
"AssignProcessToJobObject error %u
\n
"
,
GetLastError
());
...
...
@@ -2198,6 +2211,17 @@ static void test_IsProcessInJob(void)
todo_wine
ok
(
out
,
"IsProcessInJob returned out=%u
\n
"
,
out
);
out
=
TRUE
;
ret
=
pIsProcessInJob
(
pi
.
hProcess
,
job2
,
&
out
);
ok
(
ret
,
"IsProcessInJob error %u
\n
"
,
GetLastError
());
ok
(
!
out
,
"IsProcessInJob returned out=%u
\n
"
,
out
);
out
=
FALSE
;
ret
=
pIsProcessInJob
(
pi
.
hProcess
,
NULL
,
&
out
);
ok
(
ret
,
"IsProcessInJob error %u
\n
"
,
GetLastError
());
todo_wine
ok
(
out
,
"IsProcessInJob returned out=%u
\n
"
,
out
);
TerminateProcess
(
pi
.
hProcess
,
0
);
dwret
=
WaitForSingleObject
(
pi
.
hProcess
,
1000
);
...
...
@@ -2212,6 +2236,7 @@ static void test_IsProcessInJob(void)
CloseHandle
(
pi
.
hProcess
);
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
job
);
CloseHandle
(
job2
);
}
static
void
test_TerminateJobObject
(
void
)
...
...
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