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
18ea2e5f
Commit
18ea2e5f
authored
Mar 31, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add test for threadpool environment version 3.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb5f4b86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
threadpool.c
dlls/ntdll/tests/threadpool.c
+12
-0
No files found.
dlls/ntdll/tests/threadpool.c
View file @
18ea2e5f
...
...
@@ -477,6 +477,7 @@ static void CALLBACK simple2_cb(TP_CALLBACK_INSTANCE *instance, void *userdata)
static
void
test_tp_simple
(
void
)
{
TP_CALLBACK_ENVIRON
environment
;
TP_CALLBACK_ENVIRON_V3
environment3
;
TP_CLEANUP_GROUP
*
group
;
HANDLE
semaphore
;
NTSTATUS
status
;
...
...
@@ -512,6 +513,17 @@ static void test_tp_simple(void)
result
=
WaitForSingleObject
(
semaphore
,
1000
);
ok
(
result
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %u
\n
"
,
result
);
/* test with environment version 3 */
memset
(
&
environment3
,
0
,
sizeof
(
environment3
));
environment3
.
Version
=
3
;
environment3
.
Pool
=
pool
;
environment3
.
CallbackPriority
=
TP_CALLBACK_PRIORITY_NORMAL
;
environment3
.
Size
=
sizeof
(
environment3
);
status
=
pTpSimpleTryPost
(
simple_cb
,
semaphore
,
(
TP_CALLBACK_ENVIRON
*
)
&
environment3
);
ok
(
!
status
,
"TpSimpleTryPost failed with status %x
\n
"
,
status
);
result
=
WaitForSingleObject
(
semaphore
,
1000
);
ok
(
result
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %u
\n
"
,
result
);
/* test with invalid version number */
memset
(
&
environment
,
0
,
sizeof
(
environment
));
environment
.
Version
=
9999
;
...
...
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