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
e37cdbbc
Commit
e37cdbbc
authored
Oct 09, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add Sleep to make threadpool wait tests more reliable.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cf18ba1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
threadpool.c
dlls/ntdll/tests/threadpool.c
+7
-6
No files found.
dlls/ntdll/tests/threadpool.c
View file @
e37cdbbc
...
...
@@ -215,9 +215,9 @@ static void test_RtlRegisterWait(void)
ok
(
info
.
userdata
==
2
,
"expected info.userdata = 2, got %u
\n
"
,
info
.
userdata
);
result
=
WaitForSingleObject
(
semaphores
[
1
],
0
);
ok
(
result
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %u
\n
"
,
result
);
Sleep
(
50
);
status
=
RtlDeregisterWait
(
wait1
);
ok
(
!
status
||
broken
(
status
==
STATUS_PENDING
)
/* >= Win 8 */
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
ok
(
!
status
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
/* repeat test with WT_EXECUTEONLYONCE */
info
.
userdata
=
0
;
...
...
@@ -233,6 +233,7 @@ static void test_RtlRegisterWait(void)
ok
(
info
.
userdata
==
1
,
"expected info.userdata = 1, got %u
\n
"
,
info
.
userdata
);
result
=
WaitForSingleObject
(
semaphores
[
1
],
0
);
ok
(
result
==
WAIT_OBJECT_0
,
"WaitForSingleObject returned %u
\n
"
,
result
);
Sleep
(
50
);
status
=
RtlDeregisterWait
(
wait1
);
ok
(
!
status
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
...
...
@@ -248,9 +249,9 @@ static void test_RtlRegisterWait(void)
ok
(
info
.
userdata
==
0x10000
,
"expected info.userdata = 0x10000, got %u
\n
"
,
info
.
userdata
);
result
=
WaitForSingleObject
(
semaphores
[
1
],
0
);
ok
(
result
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %u
\n
"
,
result
);
Sleep
(
50
);
status
=
RtlDeregisterWait
(
wait1
);
ok
(
!
status
||
broken
(
status
==
STATUS_PENDING
)
/* >= Win 8 */
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
ok
(
!
status
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
/* finite timeout, with event */
info
.
userdata
=
0
;
...
...
@@ -265,9 +266,9 @@ static void test_RtlRegisterWait(void)
ok
(
info
.
userdata
==
1
,
"expected info.userdata = 1, got %u
\n
"
,
info
.
userdata
);
result
=
WaitForSingleObject
(
semaphores
[
1
],
0
);
ok
(
result
==
WAIT_TIMEOUT
,
"WaitForSingleObject returned %u
\n
"
,
result
);
Sleep
(
50
);
status
=
RtlDeregisterWait
(
wait1
);
ok
(
!
status
||
broken
(
status
==
STATUS_PENDING
)
/* >= Win 8 */
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
ok
(
!
status
,
"RtlDeregisterWait failed with status %x
\n
"
,
status
);
/* test RtlDeregisterWaitEx before wait expired */
info
.
userdata
=
0
;
...
...
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