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
d31b6335
Commit
d31b6335
authored
Jul 03, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Test deleting a timer right after creating it.
parent
b887e7a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
sync.c
dlls/kernel32/tests/sync.c
+17
-3
No files found.
dlls/kernel32/tests/sync.c
View file @
d31b6335
...
...
@@ -704,11 +704,11 @@ static void CALLBACK timer_queue_cb6(PVOID p, BOOLEAN timedOut)
static
void
test_timer_queue
(
void
)
{
HANDLE
q
,
t1
,
t2
,
t3
,
t4
,
t5
;
int
n1
,
n2
,
n3
,
n4
,
n5
;
HANDLE
q
,
t
0
,
t
1
,
t2
,
t3
,
t4
,
t5
;
int
n
0
,
n
1
,
n2
,
n3
,
n4
,
n5
;
struct
timer_queue_data1
d1
,
d2
,
d3
,
d4
;
HANDLE
e
,
et1
,
et2
;
BOOL
ret
;
BOOL
ret
,
ret0
;
if
(
!
pChangeTimerQueueTimer
||
!
pCreateTimerQueue
||
!
pCreateTimerQueueTimer
||
!
pDeleteTimerQueueEx
||
!
pDeleteTimerQueueTimer
)
...
...
@@ -731,6 +731,18 @@ static void test_timer_queue(void)
q
=
pCreateTimerQueue
();
ok
(
q
!=
NULL
,
"CreateTimerQueue
\n
"
);
/* Not called. */
t0
=
NULL
;
n0
=
0
;
ret
=
pCreateTimerQueueTimer
(
&
t0
,
q
,
timer_queue_cb1
,
&
n0
,
0
,
300
,
0
);
ok
(
ret
,
"CreateTimerQueueTimer
\n
"
);
ok
(
t0
!=
NULL
,
"CreateTimerQueueTimer
\n
"
);
ret0
=
pDeleteTimerQueueTimer
(
q
,
t0
,
NULL
);
ok
((
!
ret0
&&
GetLastError
()
==
ERROR_IO_PENDING
)
||
broken
(
ret0
),
/* Win 2000 & XP & 2003 */
"DeleteTimerQueueTimer ret=%d le=%u
\n
"
,
ret0
,
GetLastError
());
/* Called once. */
t1
=
NULL
;
n1
=
0
;
...
...
@@ -784,6 +796,8 @@ static void test_timer_queue(void)
ret
=
pDeleteTimerQueueEx
(
q
,
INVALID_HANDLE_VALUE
);
ok
(
ret
,
"DeleteTimerQueueEx
\n
"
);
todo_wine
ok
(
n0
==
1
||
broken
(
ret0
&&
n0
==
0
),
"Timer callback 0 expected 1 got %d
\n
"
,
n0
);
ok
(
n1
==
1
,
"Timer callback 1 expected 1 got %d
\n
"
,
n1
);
ok
(
n2
<
n3
,
"Timer callback 2 & 3 expected %d < %d
\n
"
,
n2
,
n3
);
ok
(
n4
==
0
,
"Timer callback 4 expected 0 got %d
\n
"
,
n4
);
...
...
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