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
09f4ca64
Commit
09f4ca64
authored
Jul 21, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Jul 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Check that timers are not NULL in timer queue tests.
parent
bf0f78b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
sync.c
dlls/kernel32/tests/sync.c
+14
-0
No files found.
dlls/kernel32/tests/sync.c
View file @
09f4ca64
...
@@ -625,6 +625,8 @@ static void test_timer_queue(void)
...
@@ -625,6 +625,8 @@ static void test_timer_queue(void)
ret
=
pCreateTimerQueueTimer
(
&
t1
,
q
,
timer_queue_cb1
,
&
n1
,
0
,
ret
=
pCreateTimerQueueTimer
(
&
t1
,
q
,
timer_queue_cb1
,
&
n1
,
0
,
0
,
0
);
0
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t1
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
/* A slow one. */
/* A slow one. */
t2
=
NULL
;
t2
=
NULL
;
...
@@ -632,6 +634,8 @@ static void test_timer_queue(void)
...
@@ -632,6 +634,8 @@ static void test_timer_queue(void)
ret
=
pCreateTimerQueueTimer
(
&
t2
,
q
,
timer_queue_cb1
,
&
n2
,
0
,
ret
=
pCreateTimerQueueTimer
(
&
t2
,
q
,
timer_queue_cb1
,
&
n2
,
0
,
100
,
0
);
100
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t2
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
/* A fast one. */
/* A fast one. */
t3
=
NULL
;
t3
=
NULL
;
...
@@ -639,6 +643,8 @@ static void test_timer_queue(void)
...
@@ -639,6 +643,8 @@ static void test_timer_queue(void)
ret
=
pCreateTimerQueueTimer
(
&
t3
,
q
,
timer_queue_cb1
,
&
n3
,
0
,
ret
=
pCreateTimerQueueTimer
(
&
t3
,
q
,
timer_queue_cb1
,
&
n3
,
0
,
10
,
0
);
10
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t3
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
/* Start really late (it won't start). */
/* Start really late (it won't start). */
t4
=
NULL
;
t4
=
NULL
;
...
@@ -646,6 +652,8 @@ static void test_timer_queue(void)
...
@@ -646,6 +652,8 @@ static void test_timer_queue(void)
ret
=
pCreateTimerQueueTimer
(
&
t4
,
q
,
timer_queue_cb1
,
&
n4
,
10000
,
ret
=
pCreateTimerQueueTimer
(
&
t4
,
q
,
timer_queue_cb1
,
&
n4
,
10000
,
10
,
0
);
10
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t4
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
/* Start soon, but delay so long it won't run again. */
/* Start soon, but delay so long it won't run again. */
t5
=
NULL
;
t5
=
NULL
;
...
@@ -653,6 +661,8 @@ static void test_timer_queue(void)
...
@@ -653,6 +661,8 @@ static void test_timer_queue(void)
ret
=
pCreateTimerQueueTimer
(
&
t5
,
q
,
timer_queue_cb1
,
&
n5
,
0
,
ret
=
pCreateTimerQueueTimer
(
&
t5
,
q
,
timer_queue_cb1
,
&
n5
,
0
,
10000
,
0
);
10000
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t5
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
/* Give them a chance to do some work. */
/* Give them a chance to do some work. */
Sleep
(
500
);
Sleep
(
500
);
...
@@ -704,6 +714,8 @@ static void test_timer_queue(void)
...
@@ -704,6 +714,8 @@ static void test_timer_queue(void)
10
,
0
);
10
,
0
);
d2
.
t
=
t2
;
d2
.
t
=
t2
;
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t2
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
d3
.
t
=
t3
=
NULL
;
d3
.
t
=
t3
=
NULL
;
d3
.
num_calls
=
0
;
d3
.
num_calls
=
0
;
...
@@ -713,6 +725,8 @@ static void test_timer_queue(void)
...
@@ -713,6 +725,8 @@ static void test_timer_queue(void)
10
,
0
);
10
,
0
);
d3
.
t
=
t3
;
d3
.
t
=
t3
;
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
todo_wine
ok
(
t3
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
Sleep
(
200
);
Sleep
(
200
);
...
...
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