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
ebf82cd6
Commit
ebf82cd6
authored
Oct 18, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Relax system clock timing tests a bit.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bbf74ea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
systemclock.c
dlls/quartz/tests/systemclock.c
+5
-5
No files found.
dlls/quartz/tests/systemclock.c
View file @
ebf82cd6
...
...
@@ -89,8 +89,8 @@ static void test_get_time(void)
Sleep
(
100
);
hr
=
IReferenceClock_GetTime
(
clock
,
&
time2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
time2
-
time1
>
98
*
10000
,
"Expected about %s, but got %s.
\n
"
,
wine_dbgstr_longlong
(
time1
+
98
*
10000
),
wine_dbgstr_longlong
(
time2
));
ok
(
time2
-
time1
>
80
*
10000
,
"Expected about %s, but got %s.
\n
"
,
wine_dbgstr_longlong
(
time1
+
80
*
10000
),
wine_dbgstr_longlong
(
time2
));
ref
=
IReferenceClock_Release
(
clock
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
...
...
@@ -160,11 +160,11 @@ static void test_advise(void)
hr
=
IReferenceClock_AdvisePeriodic
(
clock
,
current
,
500
*
10000
,
(
HSEMAPHORE
)
semaphore
,
&
cookie
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
!
WaitForSingleObject
(
semaphore
,
1
0
),
"Semaphore should be signaled.
\n
"
);
ok
(
!
WaitForSingleObject
(
semaphore
,
2
0
),
"Semaphore should be signaled.
\n
"
);
for
(
i
=
0
;
i
<
5
;
++
i
)
{
ok
(
WaitForSingleObject
(
semaphore
,
4
8
0
)
==
WAIT_TIMEOUT
,
"Semaphore should not be signaled.
\n
"
);
ok
(
!
WaitForSingleObject
(
semaphore
,
4
0
),
"Semaphore should be signaled.
\n
"
);
ok
(
WaitForSingleObject
(
semaphore
,
4
6
0
)
==
WAIT_TIMEOUT
,
"Semaphore should not be signaled.
\n
"
);
ok
(
!
WaitForSingleObject
(
semaphore
,
6
0
),
"Semaphore should be signaled.
\n
"
);
}
hr
=
IReferenceClock_Unadvise
(
clock
,
cookie
);
...
...
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